UNIVERSE: Using the CPS Dec 2022 data, I generated a dataset with a restricted sample to 1) one respondent per household (reference person - perrp==40 | perrp==41), 2) households with supplement interview (food security responses - hrsupint==1), and 3) households with children (hrfs12mc == 1 | hrfs12mc == 2 | hrfs12mc == 3). This dataset matches the unweighted sample depicted in the CPS 2022 codebook (n=8,306 households). This dataset also contains the same number of expanded households (n=37, 235,419) and food insecurity weighted prevalence as the USDA 2022 report (FI=17.3%).
OBJECTIVE: To generate proportion, SE, and 90%CI I must use sample weights.
PROBLEM 1: The "svy" command requests sampling weight, a PSU variable, and a Strata variable. The only supplement weighting variables for 2022 CPS Food Security Supplement are HHSUPWGT and PWSUPWGT. Should I use HHSUPWGT as PSU and PWSUPWGT as strata variables? What about sampling weight? Should I use "_n or empty"? I am trying to replicate SE and 90%CI of the figure shown on page 16-10 and 16-11 of the Census Bureau codebook (SE 0.35, 90%CI 82.1-83.3) using Stata's proportion code with sample expansion, however without success. I am clearly doing something wrong when declaring survey design for dataset.
PROBLEM 2: Another issue I am encountering is with "singleunit" option (certainty, scaled, or centered), if missing SE are not generated.
I appreciate in advance any help I can get. Best regards, Ana
OBJECTIVE: To generate proportion, SE, and 90%CI I must use sample weights.
PROBLEM 1: The "svy" command requests sampling weight, a PSU variable, and a Strata variable. The only supplement weighting variables for 2022 CPS Food Security Supplement are HHSUPWGT and PWSUPWGT. Should I use HHSUPWGT as PSU and PWSUPWGT as strata variables? What about sampling weight? Should I use "_n or empty"? I am trying to replicate SE and 90%CI of the figure shown on page 16-10 and 16-11 of the Census Bureau codebook (SE 0.35, 90%CI 82.1-83.3) using Stata's proportion code with sample expansion, however without success. I am clearly doing something wrong when declaring survey design for dataset.
PROBLEM 2: Another issue I am encountering is with "singleunit" option (certainty, scaled, or centered), if missing SE are not generated.
I appreciate in advance any help I can get. Best regards, Ana
Comment