Build Panel Data Sets from PSID Raw Data

Makes it easy to build panel data in wide format from Panel Survey of Income Dynamics (PSID) delivered raw data. Deals with data downloaded and pre-processed by 'Stata' or 'SAS', or can optionally download directly from the PSID server using the 'SAScii' package. 'psidR' takes care of merging data from each wave onto a cross-period index file, so that individuals can be followed over time. The user must specify which years they are interested in, and the PSID variable names (e.g. ER21003) for each year (they differ in each year). There are different panel data designs and sample subsetting criteria implemented ("SRC", "SEO", "immigrant" and "latino" samples).


News


  • News in Version 1.4

  • Added ability to have NA values in the individual index https://github.com/floswald/psidR/issues/4
  • Don't download anything if files are present.
  • Added a real world example
  • Illustrates how variables can be constructed from a text file.

  • News in Version 1.3

  • added unit tests
  • added travis CI
  • example dataset now created in a function. allows for attrition now.
  • fixed bugs: https://github.com/floswald/psidR/issues/2 https://github.com/floswald/psidR/issues/5 https://github.com/floswald/psidR/issues/8

  • News in Version 1.2

  • fixed bug in SAScii downloader. Dates were not adjusted for 2011 PSID data delivery. Thanks to @wmjones for reporting. https://github.com/floswald/psidR/issues/1

  • News in Version 1.1

  • updated index file to latest PSID delivery 2011
  • accomodates mutliple index files in datadir, with a warning
  • improved verbose mode
  • fixed a bug from using J() inside a data.table
  • added a not run example to help file

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("psidR")

1.4 by Florian Oswald, a year ago


https://github.com/floswald/psidR


Browse source code at https://github.com/cran/psidR


Authors: Florian Oswald


Documentation:   PDF Manual  


Task views: Econometrics


GPL-3 license


Depends on data.table, RCurl, foreign, SAScii

Suggests testthat


See at CRAN