Trying to analyze a national sample (NHAMCS), which I've restricted to a certain population (patient visits with a particular diagnosis).
The survey uses a four-stage probability design with samples of PSUs, hospitals within PSUs, clinics within hospitals, and patient visits within clinics.
After dropping the observations unrelated to the population of interest, and using the "svy" command for descriptive statistics, I get a note that I am "missing test statistics because of stratum with single sampling unit".
I've done my due diligence as far as troubleshooting the problem, and used "svydes" to identify the stratum with a singleton PSU. It turns out there is only ONE observation that falls into that category. I'd like to drop that observation, but the problem is that the stratum and PSU variables are masked in this public dataset, so "list strata psu if strata==1" command returns with a blank.
Any ideas as to how to address this issue with masked variables?
Thanks!
The survey uses a four-stage probability design with samples of PSUs, hospitals within PSUs, clinics within hospitals, and patient visits within clinics.
After dropping the observations unrelated to the population of interest, and using the "svy" command for descriptive statistics, I get a note that I am "missing test statistics because of stratum with single sampling unit".
I've done my due diligence as far as troubleshooting the problem, and used "svydes" to identify the stratum with a singleton PSU. It turns out there is only ONE observation that falls into that category. I'd like to drop that observation, but the problem is that the stratum and PSU variables are masked in this public dataset, so "list strata psu if strata==1" command returns with a blank.
Any ideas as to how to address this issue with masked variables?
Thanks!
Comment