This research studies how different types of household debt affect retirement preparedness among Canadian households, using data from Statistics Canada's 2019 Survey of Financial Security. We find that while mortgage debt shows positive associations with retirement preparedness in early career stages, student loan debt significantly impairs retirement readiness, suggesting the need for targeted policy interventions to improve retirement outcomes.
This directory contains the materials for
"The Impact of Household Debt on Retirement Preparedness in Canada" by S. Li
data/
contains the processed data used in the analysismodels/
contains the fitted multi-linear regression modelpaper/
contains the Quarto document, bibliography file, and final PDFscripts/
contains R scripts for data processing and model implementation
This analysis requires R version 4.4.0 or later, along with the following packages:
tidyverse
2.0.0dplyr
1.1.4car
3.1.2sandwich
3.0.2ggplot2
3.0.2tibble
3.2.1knitr
1.48kableExtra
1.4.0
To reproduce the analysis and paper, follow these steps:
- Clone the repository to your local machine.
- Go to
scripts/
and rundata_cleaning.R
. This script processes the raw SFS 2019 data for our regression model and analysis.model. - Go to
scripts/
and runmodel_data.R
: This script uses the processed data to build the regression model, and saves it tomodels/
- Open the Quarto document in
paper/paper.qmd
and render the PDF file. This will create the necessary figures and tables in the paper.