Hi,
I am trying to set-up a complex survey data set in Stata and Mplus so that they have the same settings.
I am having trouble getting them to match up.
I am not getting the same standard errors for simple descriptive statistics, suggesting that the survey structure is not being accounted for in the same way across Stata and Mplus.
In Stata I am entering:
svyset IDSCHOOL [pweight=TOTWGT], fpc(TOTALSCHOOLSPERSTRATUM) strata(IDSTRAT) singleunit(scaled) || IDCLASS
In Mplus I am entering:
VARIABLE:
WEIGHT = TOTWGT;
CLUSTER = IDSCHOOL IDCLASS;
STRATIFICATION = IDSTRAT;
FINITE = TOTALSCHOOLSPERSTRATUM (POPULATION);
ANALYSIS:
TYPE = TWOLEVEL COMPLEX;
Does anyone have experience with this and know how I can set the survey structure to be equivalent?
Note: I set singleunit(scaled) because in Mplus the "THE VARIANCE CONTRIBUTION FROM A STRATUM WITH A SINGLE CLUSTER (PSU) IS BASED ON THE DIFFERENCE BETWEEN THE SINGLE CLUSTER VALUE AND THE OVERALL CLUSTER MEAN."
Related Posts with Complex survey settings
Is it possible to use two datasets at once?Hey STATA noob here, I'm wondering if it's possible to use variables from two different datasets at…
Agreement (kappa) Dear Statalisters, I have a 65 observation, we want to look at the variable only walking >=6 min…
Check if coefficient from two different reghdfe regressions is the sameHi all, I am using Stata 15 on Windows. I have data on houses and study the effect of mixed use on…
Hypothetical default rateDear Statalist, I have a dataset containing loans which are followed through time. I am running a l…
SUR-like technique for same outcome but multiple predictorsHello, I am running a series of multinomial logistic regressions that use the same outcome variable…
Subscribe to:
Post Comments (Atom)
0 Response to Complex survey settings
Post a Comment