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.

Examples: Regression And Path AnalysisEXAMPLE 3.4: PROBIT REGRESSIONTITLE: this is an example of a probit regressionfor a binary or categorical observeddependent variable with two covariatesDATA: FILE IS ex3.4.dat;VARIABLE: NAMES ARE u1-u6 x1-x4;USEVARIABLES ARE u1 x1 x3;CATEGORICAL = u1;MODEL: u1 ON x1 x3;The difference between this example and Example 3.1 is that thedependent variable is a binary or ordered categorical (ordinal) variableinstead of a continuous variable. The CATEGORICAL option is used tospecify which dependent variables are treated as binary or orderedcategorical (ordinal) variables in the model and its estimation. In theexample above, u1 is a binary or ordered categorical variable. Theprogram determines the number of categories. The ON statementdescribes the probit regression of u1 on the covariates x1 and x3. Thedefault estimator for this type of analysis is a robust weighted leastsquares estimator. The ESTIMATOR option of the ANALYSIScommand can be used to select a different estimator. An explanation ofthe other commands can be found in Example 3.1.EXAMPLE 3.5: LOGISTIC REGRESSIONTITLE: this is an example of a logisticregression for a categorical observeddependent variable with two covariatesDATA: FILE IS ex3.5.dat;VARIABLE: NAMES ARE u1-u6 x1-x4;USEVARIABLES ARE u1 x1 x3;CATEGORICAL IS u1;ANALYSIS: ESTIMATOR = ML;MODEL: u1 ON x1 x3;The difference between this example and Example 3.1 is that thedependent variable is a binary or ordered categorical (ordinal) variableinstead of a continuous variable. The CATEGORICAL option is used tospecify which dependent variables are treated as binary or orderedcategorical (ordinal) variables in the model and its estimation. In the25

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

Saved successfully!

Ooh no, something went wrong!