Mplus VERSION 8.8
MUTHEN & MUTHEN
04/19/2022 10:22 PM
INPUT INSTRUCTIONS
TITLE: this is an example of a path analysis
with a categorical dependent variable and
a continuous mediating variable with missing data
MONTECARLO:
NAMES = y u x;
NOBSERVATIONS = 500;
NREPS = 1;
SEED = 53487;
GENERATE = u(1);
CATEGORICAL = u;
MISSING = y;
SAVE = ex3.17.dat;
ANALYSIS:
ESTIMATOR = MLR;
INTEGRATION = MONTECARLO;
MODEL POPULATION:
[x@0]; x@1;
y ON x*-1;
y*1;
[y*.5];
u ON x*1 y*.5;
MODEL:
y ON x*-1;
y*1;
[y*.5];
u ON x*1 y*.5;
MODEL MISSING:
y ON x@1;
[y@-1];
OUTPUT: TECH8 TECH9;
INPUT READING TERMINATED NORMALLY
this is an example of a path analysis
with a categorical dependent variable and
a continuous mediating variable with missing data
SUMMARY OF ANALYSIS
Number of groups 1
Number of observations 500
Number of replications
Requested 1
Completed 1
Value of seed 53487
Number of dependent variables 2
Number of independent variables 1
Number of continuous latent variables 0
Observed dependent variables
Continuous
Y
Binary and ordered categorical (ordinal)
U
Observed independent variables
X
Estimator MLR
Information matrix OBSERVED
Optimization Specifications for the Quasi-Newton Algorithm for
Continuous Outcomes
Maximum number of iterations 100
Convergence criterion 0.100D-05
Optimization Specifications for the EM Algorithm
Maximum number of iterations 500
Convergence criteria
Loglikelihood change 0.100D-02
Relative loglikelihood change 0.100D-05
Derivative 0.100D-02
Optimization Specifications for the M step of the EM Algorithm for
Categorical Latent variables
Number of M step iterations 1
M step convergence criterion 0.100D-02
Basis for M step termination ITERATION
Optimization Specifications for the M step of the EM Algorithm for
Censored, Binary or Ordered Categorical (Ordinal), Unordered
Categorical (Nominal) and Count Outcomes
Number of M step iterations 1
M step convergence criterion 0.100D-02
Basis for M step termination ITERATION
Maximum value for logit thresholds 15
Minimum value for logit thresholds -15
Minimum expected cell size for chi-square 0.100D-01
Maximum number of iterations for H1 2000
Convergence criterion for H1 0.100D-03
Optimization algorithm EMA
Integration Specifications
Type MONTECARLO
Number of integration points 250
Dimensions of numerical integration 1
Adaptive quadrature ON
Monte Carlo integration seed 0
Link LOGIT
Cholesky OFF
SUMMARY OF DATA FOR THE FIRST REPLICATION
Number of missing data patterns 2
Number of y missing data patterns 2
Number of u missing data patterns 1
SUMMARY OF MISSING DATA PATTERNS FOR THE FIRST REPLICATION
MISSING DATA PATTERNS FOR Y (x = not missing)
1 2
Y x
X x x
MISSING DATA PATTERN FREQUENCIES FOR Y
Pattern Frequency Pattern Frequency
1 349 2 151
COVARIANCE COVERAGE OF DATA FOR THE FIRST REPLICATION
Minimum covariance coverage value 0.100
PROPORTION OF DATA PRESENT FOR Y
Covariance Coverage
Y X
________ ________
Y 0.698
X 0.698 1.000
SAMPLE STATISTICS FOR THE FIRST REPLICATION
ESTIMATED SAMPLE STATISTICS
Means
Y X
________ ________
0.604 -0.067
Covariances
Y X
________ ________
Y 1.986
X -0.964 0.960
Correlations
Y X
________ ________
Y 1.000
X -0.698 1.000
MAXIMUM LOG-LIKELIHOOD VALUE FOR THE UNRESTRICTED (H1) MODEL IS -1197.571
MODEL FIT INFORMATION
Number of Free Parameters 6
Loglikelihood
H0 Value
Mean -820.779
Std Dev 0.000
Number of successful computations 1
Proportions Percentiles
Expected Observed Expected Observed
0.990 0.000 -820.779 -820.779
0.980 0.000 -820.779 -820.779
0.950 0.000 -820.779 -820.779
0.900 0.000 -820.779 -820.779
0.800 0.000 -820.779 -820.779
0.700 0.000 -820.779 -820.779
0.500 0.000 -820.779 -820.779
0.300 0.000 -820.779 -820.779
0.200 0.000 -820.779 -820.779
0.100 0.000 -820.779 -820.779
0.050 0.000 -820.779 -820.779
0.020 0.000 -820.779 -820.779
0.010 0.000 -820.779 -820.779
Information Criteria
Akaike (AIC)
Mean 1653.557
Std Dev 0.000
Number of successful computations 1
Proportions Percentiles
Expected Observed Expected Observed
0.990 0.000 1653.557 1653.557
0.980 0.000 1653.557 1653.557
0.950 0.000 1653.557 1653.557
0.900 0.000 1653.557 1653.557
0.800 0.000 1653.557 1653.557
0.700 0.000 1653.557 1653.557
0.500 0.000 1653.557 1653.557
0.300 0.000 1653.557 1653.557
0.200 0.000 1653.557 1653.557
0.100 0.000 1653.557 1653.557
0.050 0.000 1653.557 1653.557
0.020 0.000 1653.557 1653.557
0.010 0.000 1653.557 1653.557
Bayesian (BIC)
Mean 1678.845
Std Dev 0.000
Number of successful computations 1
Proportions Percentiles
Expected Observed Expected Observed
0.990 0.000 1678.845 1678.845
0.980 0.000 1678.845 1678.845
0.950 0.000 1678.845 1678.845
0.900 0.000 1678.845 1678.845
0.800 0.000 1678.845 1678.845
0.700 0.000 1678.845 1678.845
0.500 0.000 1678.845 1678.845
0.300 0.000 1678.845 1678.845
0.200 0.000 1678.845 1678.845
0.100 0.000 1678.845 1678.845
0.050 0.000 1678.845 1678.845
0.020 0.000 1678.845 1678.845
0.010 0.000 1678.845 1678.845
Sample-Size Adjusted BIC (n* = (n + 2) / 24)
Mean 1659.801
Std Dev 0.000
Number of successful computations 1
Proportions Percentiles
Expected Observed Expected Observed
0.990 0.000 1659.801 1659.801
0.980 0.000 1659.801 1659.801
0.950 0.000 1659.801 1659.801
0.900 0.000 1659.801 1659.801
0.800 0.000 1659.801 1659.801
0.700 0.000 1659.801 1659.801
0.500 0.000 1659.801 1659.801
0.300 0.000 1659.801 1659.801
0.200 0.000 1659.801 1659.801
0.100 0.000 1659.801 1659.801
0.050 0.000 1659.801 1659.801
0.020 0.000 1659.801 1659.801
0.010 0.000 1659.801 1659.801
MODEL RESULTS
ESTIMATES S. E. M. S. E. 95% % Sig
Population Average Std. Dev. Average Cover Coeff
Y ON
X -1.000 -1.0107 0.0000 0.0600 0.0001 1.000 1.000
U ON
X 1.000 1.0347 0.0000 0.1718 0.0012 1.000 1.000
Y 0.500 0.4931 0.0000 0.1231 0.0000 1.000 1.000
Intercepts
Y 0.500 0.5336 0.0000 0.0558 0.0011 1.000 1.000
Thresholds
U$1 0.000 0.0934 0.0000 0.1169 0.0087 1.000 0.000
Residual Variances
Y 1.000 1.0220 0.0000 0.0783 0.0005 1.000 1.000
QUALITY OF NUMERICAL RESULTS
Average Condition Number for the Information Matrix 0.491E-01
(ratio of smallest to largest eigenvalue)
TECHNICAL 1 OUTPUT
PARAMETER SPECIFICATION
TAU
U$1
________
6
NU
U Y X
________ ________ ________
0 0 0
LAMBDA
U Y X
________ ________ ________
U 0 0 0
Y 0 0 0
X 0 0 0
THETA
U Y X
________ ________ ________
U 0
Y 0 0
X 0 0 0
ALPHA
U Y X
________ ________ ________
0 1 0
BETA
U Y X
________ ________ ________
U 0 2 3
Y 0 0 4
X 0 0 0
PSI
U Y X
________ ________ ________
U 0
Y 0 5
X 0 0 0
STARTING VALUES
TAU
U$1
________
0.000
NU
U Y X
________ ________ ________
0.000 0.000 0.000
LAMBDA
U Y X
________ ________ ________
U 1.000 0.000 0.000
Y 0.000 1.000 0.000
X 0.000 0.000 1.000
THETA
U Y X
________ ________ ________
U 0.000
Y 0.000 0.000
X 0.000 0.000 0.000
ALPHA
U Y X
________ ________ ________
0.000 0.500 0.000
BETA
U Y X
________ ________ ________
U 0.000 0.500 1.000
Y 0.000 0.000 -1.000
X 0.000 0.000 0.000
PSI
U Y X
________ ________ ________
U 1.000
Y 0.000 1.000
X 0.000 0.000 0.500
POPULATION VALUES
TAU
U$1
________
0.000
NU
U Y X
________ ________ ________
0.000 0.000 0.000
LAMBDA
U Y X
________ ________ ________
U 1.000 0.000 0.000
Y 0.000 1.000 0.000
X 0.000 0.000 1.000
THETA
U Y X
________ ________ ________
U 0.000
Y 0.000 0.000
X 0.000 0.000 0.000
ALPHA
U Y X
________ ________ ________
0.000 0.500 0.000
BETA
U Y X
________ ________ ________
U 0.000 0.500 1.000
Y 0.000 0.000 -1.000
X 0.000 0.000 0.000
PSI
U Y X
________ ________ ________
U 0.000
Y 0.000 1.000
X 0.000 0.000 1.000
TECHNICAL 8 OUTPUT
TECHNICAL 8 OUTPUT FOR REPLICATION 1
E STEP ITER LOGLIKELIHOOD ABS CHANGE REL CHANGE ALGORITHM
1 -0.82165929D+03 0.0000000 0.0000000 EM
2 -0.82079142D+03 0.8678696 0.0010562 EM
3 -0.82077827D+03 0.0131520 0.0000160 EM
4 -0.82077869D+03 -0.0004180 -0.0000005 EM
TECHNICAL 9 OUTPUT
Error messages for each replication (if any)
SAVEDATA INFORMATION
Order of variables
U
Y
X
Save file
ex3.17.dat
Save file format Free
Save file record length 10000
Missing designated by 999
Beginning Time: 22:22:34
Ending Time: 22:22:34
Elapsed Time: 00:00:00
MUTHEN & MUTHEN
3463 Stoner Ave.
Los Angeles, CA 90066
Tel: (310) 391-9971
Fax: (310) 391-8971
Web: www.StatModel.com
Support: Support@StatModel.com
Copyright (c) 1998-2022 Muthen & Muthen
Back to examples