Hi All,
I am trying to estimate population prevalence of disease X using survey data. I created a new variable sampling weight calculated as an inverse probability of sample selection. After declaring survey design, I calculated my population prevalence. I have then found online a formula for calculation of population proportion from the survey using stratified PPS sampling (please, see below) and recalculated my results by hand. Using the formula below I obtained slightly different result. I now understand that Stata calculate population proportion by weighting the individual observations with disease by their respective weights to obtain the total population count which is then divided by the total N.
My question is why the two different ways of obtaining population proportion yielded slightly different results and which one is correct? I thought that there would only be one way of correctly analysing data collected from the stratified sampling structure.
I would be grateful if anyone could clarify this to me.
Thank you!
Martina


I am trying to estimate population prevalence of disease X using survey data. I created a new variable sampling weight calculated as an inverse probability of sample selection. After declaring survey design, I calculated my population prevalence. I have then found online a formula for calculation of population proportion from the survey using stratified PPS sampling (please, see below) and recalculated my results by hand. Using the formula below I obtained slightly different result. I now understand that Stata calculate population proportion by weighting the individual observations with disease by their respective weights to obtain the total population count which is then divided by the total N.
My question is why the two different ways of obtaining population proportion yielded slightly different results and which one is correct? I thought that there would only be one way of correctly analysing data collected from the stratified sampling structure.
I would be grateful if anyone could clarify this to me.
Thank you!
Martina
Comment