---
title: "The Panel Study of Income Dynamics"
author: "PSID data"
format: html
---

## From the website:
The Panel Study of Income Dynamics (PSID) is the longest running longitudinal household survey in the world. 

The study began in 1968 with a nationally representative sample of over 18,000 individuals living in 5,000 families in the United States. Information on these individuals and their descendants has been collected continuously, including data covering employment, income, wealth, expenditures, health, marriage, childbearing, child development, philanthropy, education, and numerous other topics. Over 7,600 peer-reviewed publications have been based on the PSID.

## To download the data 

1. Download the codebook and labels file from

[https://euclid.nmu.edu/~joshthom/teaching/dat309/data/PSID2/](https://euclid.nmu.edu/~joshthom/teaching/dat309/data/PSID2/)

2. Install the data directly into R using: 

```{r eval=FALSE}
install.packages("openxlsx")
library(openxlsx)
df = read.xlsx("https://euclid.nmu.edu/~joshthom/teaching/dat309/data/PSID2/J323980.xlsx")
```

