You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: readme.md
+35-9
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,38 @@ The [Panel Study of Income Dynamics](http://psidonline.isr.umich.edu/) is a publ
45
45
This package attempts to help the task of building a panel dataset. The user directly downloads ASCII data from the PSID server into `R`, **without the need** for any other software like stata or sas. To build the panel, the user must then specify the variable names in each wave of the questionnaire in a data.frame `fam.vars`, as well as the variables from the individual index in `ind.vars`. The helper function `getNamesPSID` is helpful in finding different variable names across waves - see examples below.
46
46
47
47
48
-
### Quick Start
48
+
### Quick Start and `API`
49
+
50
+
1. You must supply at least one data.frame with variables to read from the family file. Most of the time you will also supply a data.frame with variables from the individual files to read.
51
+
2. Those dataframes **must** be in the following format. I.e. column `year` is an integer and indicates calendar year, the other columns are the _variable names which will appear in your panel_.
52
+
53
+
```R
54
+
> head(i) # individiual file example
55
+
yearageeducempstatweight
56
+
1:1968ER30004ER30010<NA>ER30019
57
+
2:1969ER30023<NA><NA>ER30042# NOTICE THE NA for educ HERE!!
0 commit comments