Skip to Main Content

Logistic Regression | Mplus Annotated Output

Background

This page shows an example of logistic regression with footnotes explaining the output. This example is from the Mplus User’s Guide (example 3.5) and we suggest that you see the Mplus User’s Guide for more details about this example. We thank the kind people at Muthén & Muthén for permission to use examples from their manual.

By default, Mplus models the logit of the probability of the latter category of a binary outcome.

Note: While most software packages use this typical parameterization of the logistic regression model:

logit(pi)=β0+β1x1i+...+βpxpilogit(p_i) = \beta_0 + \beta_1x_{1i} + … + \beta_p x_{pi}

Mplus uses this parameterization of the model:

logit(pi)=−τ+β1x1i+...+βpxpilogit(p_i) = -\tau + \beta_1x_{1i} + … + \beta_p x_{pi}

The parameter $\tau$ is often referred to as the “threshold” and equals the negative of the intercept $\beta_0$ in the more common parameterization, i.e., $\tau=-\beta_0$. The coefficients for the predictors $\beta_1,…,\beta_p$ will have the same interpretation in the two parameterizations.

This example uses the https://stats.idre.ucla.edu/wp-content/uploads/2016/02/ex3.5.dat data file. We model the binary outcome u1, which has values 0 and 1 so Mplus will be modeling the probability of 1. The predictors are x1 and x3.

Input file

TITLE:	
this is an example of a logistic
regression for a categorical observed
dependent variable with two covariates
DATA:
FILE = https://stats.idre.ucla.edu/wp-content/uploads/2016/02/ex3.5.dat;
VARIABLE:
NAMES = u1 x1 x3;
CATEGORICAL = u1;
ANALYSIS:
ESTIMATOR = ML;
! need to use estimator = ml to make this a logistic model;
MODEL:
u1 ON x1 x3;

Annotated Output

Note: Much of the output at the top of the output file has been omitted for space.

MODEL FIT INFORMATION

Number of Free Parameters 3

Loglikelihood

H0 Value -202.620

Information Criteria

Akaike (AIC) 411.240
Bayesian (BIC) 423.884
Sample-Size Adjusted BIC 414.362
(n* = (n + 2) / 24)

MODEL FIT INFORMATION

Number of Free Parameters

Loglikelihood

Information Criteria


MODEL RESULTS

Two-Tailed
Estimate S.E. Est./S.E. P-Value

U1 ON
X1 1.072 0.143 7.502 0.000
X3 1.839 0.179 10.243 0.000

Thresholds
U1$1 1.026 0.137 7.492 0.000

MODEL RESULTS

Estimated model parameters, where the columns are:

The rows of the parameter estimate table are:


QUALITY OF NUMERICAL RESULTS

Condition Number for the Information Matrix 0.314E+00
(ratio of smallest to largest eigenvalue)


QUALITY OF NUMERICAL RESULTS


RESULTS IN PROBABILITY SCALE

Estimate

U1
Category 1 0.654
Category 2 0.346

RESULTS IN PROBABILITY SCALE


LOGISTIC REGRESSION ODDS RATIO RESULTS FOR OBSERVED VARIABLES

95% C.I.
Estimate S.E. Lower 2.5% Upper 2.5%

U1 ON
X1 2.921 0.417 2.207 3.864
X3 6.288 1.129 4.423 8.939

LOGISTIC REGRESSION ODDS RATIO RESULTS FOR OBSERVED VARIABLES

Odds ratios are the exponentiated regression coefficients, and the columns are:

The rows of the table are: