ACS Data Users Group

 View Only
  • 1.  Calculating Standard Error of Median Income in PUMS using R

    Posted 11-08-2017 08:20 AM

    Hello,

    I would like to use R to calculate the standard error of the median income of a population represented in PUMS. I would like to do this using replicate weights, if possible.

    I know how to calculate the standard error of an estimate using replicate weights, but the calculation of median income seems trickier. How do you properly weigh that type of data? Each person's income is weighted differently so... ?

    I would like to stick with R and replicate weights if at all possible (ie no SAS, SPSS, or design factors)

    Thanks!

    Sam



  • 2.  RE: Calculating Standard Error of Median Income in PUMS using R

    Posted 02-05-2018 04:24 PM
    The survey package includes a quantile function called svyquantile. See the man page below:

    r-survey.r-forge.r-project.org/.../svyquantile.html