Small Area Estimation R Package

Dear ACS DUG,

I have posted an early Windows installer for a package that makes tract level synthetic data from PUMS data. It has the feature of being able to merge in the Supplemental Poverty Measure PUMS data files should you want to use variables in that dataset. See dorerfoundation.org/software for more information and a link to the GitHub webpage.

Feedback welcome, The package is an early development version.

Dave Dorer

A Linux (developed on Ubuntu) installer is also available.  You need gcc to compile one C routine.

Parents
  • Here is the latest update on the package for synthesizing tract level data from PUMA PUMS data and tract level detail tables.

    After much research and programming I am able to create replicate weights for the synthetic tract level data using a technique from:

    Fuller, Wayne A. 1998. “Replication Variance Estimation for Two-Phase Samples.” Statistica Sinica 8 (4): 1153–64.

    where you "perturb" the replicate weights from the PUMS data set using the Margin of Error for the Detail tables marginal totals.

    I'm using the R "grake" R function from the "survey" package inside the calibrate_to_estimate in the "svrep" package.  I've been able to test the method on pums data with the Age x Sex marginal from B01001 together with the Employed marginal from B23025

    This takes about 30 seconds for a single census tract. The PUMS table is Age x Sex x Race x Poverty x Employed.  This is a small set of variables and marginals.  I have run models with about a dozen PUMS variables along with about a dozen marginal tables using IPF without replicate weights. This takes about 3 days for all the tracts in a state.

    In any case I have to "dust off" my FORTRAN 77 experience and code all the matrix calculations and iteration loops so that the larger problems will be feasible in a reasonable amount to "clock" time.

    I'll release an updated package when I am further along.

    Best,

    Dave Dorer

  • Where is the link? I don't see it. 

Reply Children
  • Go to dorerfoundation.org  software tab (across the top)   takes you to dorerfoundation.org/software  near the bottom "Link to Github website"   this will take you to the Github webpage.  Download PAT_0.9.zip    Then from within R use install.packages(<path to PAT_0.9.zip>, repos=NULL)   You need to create some folders for storing data. Also from within r use PAT.root() to set the working directory where you created the folders. Let me know if you have any difficulties or questions. You might post some information on your profile page so I know a little about your background. Send email to the address on the "Contact" page of the website. I have received feedback from only one person so I can't tell if there are any useability issues. There are vignettes on the Github web page so you can download the pdf's and read them without installing the package.

    Dave