I am analyzing Current Population Survey data using the replicate weights file provided by the Census Bureau for variance estimation. I am using the following SVY syntax to handle the replicate weights:
svyset [iw=pwwgt0], sdrweight(pwwgt1-pwwgt160)
I would like to calculate the median value of certain variables, and confidence intervals around the median. I cannot figure out how to do this using the SVY commands.
I have searched the STATA listserve, and I did see a similar thread, and the SOMERSD and SCSOMERSD ado packages were suggested for a similar but not identical problem. (http://www.stata.com/statalist/archi.../msg00933.html) This package seems to permit the use of pweights and clustering when calculating confidence intervals around medians, but I don’t think they permit the use of replicate weights.
Does anyone have any suggestions?
Thank you very much,
Rhiannon Patterson
US Government Accountability Office
701 Fifth Avenue, Suite 2700,
Seattle, WA 98104
svyset [iw=pwwgt0], sdrweight(pwwgt1-pwwgt160)
I would like to calculate the median value of certain variables, and confidence intervals around the median. I cannot figure out how to do this using the SVY commands.
I have searched the STATA listserve, and I did see a similar thread, and the SOMERSD and SCSOMERSD ado packages were suggested for a similar but not identical problem. (http://www.stata.com/statalist/archi.../msg00933.html) This package seems to permit the use of pweights and clustering when calculating confidence intervals around medians, but I don’t think they permit the use of replicate weights.
Does anyone have any suggestions?
Thank you very much,
Rhiannon Patterson
US Government Accountability Office
701 Fifth Avenue, Suite 2700,
Seattle, WA 98104
Comment