Hello all!
I've come across several threads discussing goodness of fit tests (specifically estat gof and svylogitgof) to use with the svy:logistic procedure.
However, when I run my svy:logistic command with a subpop identified, the estat gof will not run and the svylogitgof uses all observations (not just the subpopulation).
I've seen suggestions to use an -if statement in the svy:logistic command to identify the sub-population (and subsequently the estat gof) but that doesn't seem possible with the data I'm using (NHIS) as it only produces OR without the standard errors or confidence intervals. I've seen instructions from the CDC specifically recommending the subpop command instead of subsetting the data.
What is the best way get a goodness-of-fit statistic within the svy:logistic command while specifying a sub-population (subpop)?
I've come across several threads discussing goodness of fit tests (specifically estat gof and svylogitgof) to use with the svy:logistic procedure.
However, when I run my svy:logistic command with a subpop identified, the estat gof will not run and the svylogitgof uses all observations (not just the subpopulation).
I've seen suggestions to use an -if statement in the svy:logistic command to identify the sub-population (and subsequently the estat gof) but that doesn't seem possible with the data I'm using (NHIS) as it only produces OR without the standard errors or confidence intervals. I've seen instructions from the CDC specifically recommending the subpop command instead of subsetting the data.
What is the best way get a goodness-of-fit statistic within the svy:logistic command while specifying a sub-population (subpop)?
Comment