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
Rank individual with characteristic A against members with characteristic BHi, I am unsure of how to write code for the following situation. I have a data set of students nes…
Fitting Random Slope in Mixed ModelsGreetings Experts, I use stata version 15.0. I have longitudinal data that I am trying to fit some …
Interpreting AME after margins commandDear all, I am using the -margins- command to estimate the impact of several binary explanatory var…
Map integration: Distance from tube station?Is there a Stata package that can calculate the distance of an address from a category of landmarks?…
Calculating the proportion of observations that fulfill successive conditionsDear Statalisters, I have data following movements of cyclists through designated checkpoints. Each…
Subscribe to:
Post Comments (Atom)
0 Response to Complex survey settings
Post a Comment