10.07.2015 Views

Mplus Users Guide v6.. - Muthén & Muthén

Mplus Users Guide v6.. - Muthén & Muthén

Mplus Users Guide v6.. - Muthén & Muthén

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 13EXAMPLE 13.19: GENERATING, USING, AND SAVINGREPLICATE WEIGHTSTITLE: this is an example of generating, using,and saving replicate weightsDATA: FILE IS ex13.19.dat;VARIABLE: NAMES ARE y1-y4 weight strat psu;WEIGHT = weight;STRATIFICATION = strat;CLUSTER = psu;ANALYSIS: TYPE = COMPLEX;REPSE = BOOTSTRAP;BOOTSTRAP = 100;MODEL: f BY y1-y4;SAVEDATA: FILE IS rweights.sav;SAVE = REPWEIGHTS;This example shows how to generate, use, and save replicate weights ina factor analysis. Replicate weights summarize information about acomplex sampling design (Korn & Graubard, 1999; Lohr, 1999;Asparouhov & <strong>Muthén</strong>, 2009b). When replicate weights are generated,the REPSE option of the ANALYSIS command and the WEIGHT optionof the VARIABLE command along with the STRATIFICATION and/orCLUSTER options of the VARIABLE command are used. TheWEIGHT option is used to identify the variable that contains samplingweight information. In this example, the sampling weight variable isweight. The STRATIFICATION option is used to identify the variablein the data set that contains information about the subpopulations fromwhich independent probability samples are drawn. In this example, thevariable is strat. The CLUSTER option is used to identify the variablein the data set that contains clustering information. In this example, thevariable is psu. Replicate weights can be generated and analyzed onlywith TYPE=COMPLEX. The REPSE option is used to specify theresampling method that will be used to create the replicate weights. Thesetting BOOTSTRAP specifies that bootstrap draws will be used. TheBOOTSTRAP option specifies that 100 bootstrap draws will be carriedout. When replicate weights are generated, they can be saved for furtheranalysis using the FILE and SAVE options of the SAVEDATAcommand. Replicate weights will be saved along with the other analysisvariables in the file named rweights.sav.406

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!