```Mplus VERSION 7.4
MUTHEN & MUTHEN
06/03/2016   3:36 PM

INPUT INSTRUCTIONS

title: Hayes PROTEST moderation of X -> M, X->Y
as a 2-group model for X=0/1.
Modind checking for moderation.

data:
file = protest.txt;

variable:
names = sexism liking respappr protest;
usev = sexism liking respappr protest;

grouping = protest(0=zero 1=one);

analysis:
estimator = mlr;

model:
liking on respappr (k1)
sexism;! (k2);
respappr on sexism;! (p1);

model zero:
liking on sexism (k20);
respappr on sexism (p10);

model one:
liking on sexism (k21);
respappr on sexism (p11);

model constraint:
new(k2diff p1diff);
k2diff = k21-k20;
p1diff = p11-p10;

plot:
type = plot3;

output:
sampstat tech1;

Hayes PROTEST moderation of X -> M, X->Y
as a 2-group model for X=0/1.
Modind checking for moderation.

SUMMARY OF ANALYSIS

Number of groups                                                 2
Number of observations
Group ZERO                                                   41
Group ONE                                                    88
Total sample size                                           129

Number of dependent variables                                    2
Number of independent variables                                  1
Number of continuous latent variables                            0

Observed dependent variables

Continuous
LIKING      RESPAPPR

Observed independent variables
SEXISM

Variables with special functions

Grouping variable     PROTEST

Estimator                                                      MLR
Information matrix                                        OBSERVED
Maximum number of iterations                                  1000
Convergence criterion                                    0.500D-04
Maximum number of steepest descent iterations                   20

Input data file(s)
protest.txt

Input data format  FREE

SAMPLE STATISTICS

SAMPLE STATISTICS FOR ZERO

Means
LIKING        RESPAPPR      SEXISM
________      ________      ________
1         5.310         3.884         5.071

Covariances
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         1.653
RESPAPPR       0.722         2.070
SEXISM        -0.271        -0.304         0.574

Correlations
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         1.000
RESPAPPR       0.390         1.000
SEXISM        -0.278        -0.279         1.000

SAMPLE STATISTICS FOR ONE

Means
LIKING        RESPAPPR      SEXISM
________      ________      ________
1         5.789         5.324         5.138

Covariances
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         0.760
RESPAPPR       0.462         1.020
SEXISM         0.226         0.175         0.625

Correlations
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         1.000
RESPAPPR       0.525         1.000
SEXISM         0.327         0.220         1.000

UNIVARIATE SAMPLE STATISTICS

UNIVARIATE HIGHER-ORDER MOMENT DESCRIPTIVE STATISTICS FOR ZERO

Variable/         Mean/     Skewness/   Minimum/ % with                Percentiles
Sample Size      Variance    Kurtosis    Maximum  Min/Max      20%/60%    40%/80%    Median

LIKING                5.310      -1.257       1.000    2.44%       4.500      5.160      5.330
41.000       1.653       2.007       7.000    7.32%       5.830      6.500
RESPAPPR              3.884      -0.056       1.500    4.88%       2.500      3.250      4.000
41.000       2.070      -1.273       6.250    2.44%       4.500      5.250
SEXISM                5.071       0.472       4.000    4.88%       4.250      4.750      5.000
41.000       0.574      -0.843       6.620    2.44%       5.120      5.750

UNIVARIATE HIGHER-ORDER MOMENT DESCRIPTIVE STATISTICS FOR ONE

Variable/         Mean/     Skewness/   Minimum/ % with                Percentiles
Sample Size      Variance    Kurtosis    Maximum  Min/Max      20%/60%    40%/80%    Median

LIKING                5.789      -0.438       3.660    1.14%       5.000      5.660      5.830
88.000       0.760      -0.690       7.000   10.23%       6.160      6.500
RESPAPPR              5.324      -0.811       1.750    1.14%       4.500      5.250      5.500
88.000       1.020       0.922       7.000    3.41%       5.750      6.250
SEXISM                5.138      -0.034       2.870    1.14%       4.500      4.870      5.120
88.000       0.625      -0.007       7.000    2.27%       5.370      5.750

THE MODEL ESTIMATION TERMINATED NORMALLY

MODEL FIT INFORMATION

Number of Free Parameters                       13

Loglikelihood

H0 Value                        -355.204
H0 Scaling Correction Factor      1.0404
for MLR
H1 Value                        -354.955
H1 Scaling Correction Factor      1.0392
for MLR

Information Criteria

Akaike (AIC)                     736.408
Bayesian (BIC)                   773.585
(n* = (n + 2) / 24)

Chi-Square Test of Model Fit

Value                              0.486*
Degrees of Freedom                     1
P-Value                           0.4857
Scaling Correction Factor         1.0238
for MLR

Chi-Square Contribution From Each Group

ZERO                               0.361
ONE                                0.125

*   The chi-square value for MLM, MLMV, MLR, ULSMV, WLSM and WLSMV cannot be used
for chi-square difference testing in the regular way.  MLM, MLR and WLSM
chi-square difference testing is described on the Mplus website.  MLMV, WLSMV,
and ULSMV difference testing is done using the DIFFTEST option.

RMSEA (Root Mean Square Error Of Approximation)

Estimate                           0.000
90 Percent C.I.                    0.000  0.290
Probability RMSEA <= .05           0.520

CFI/TLI

CFI                                1.000
TLI                                1.071

Chi-Square Test of Model Fit for the Baseline Model

Value                             49.741
Degrees of Freedom                     6
P-Value                           0.0000

SRMR (Standardized Root Mean Square Residual)

Value                              0.042

MODEL RESULTS

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

Group ZERO

LIKING   ON
RESPAPPR           0.383      0.068      5.642      0.000
SEXISM            -0.270      0.262     -1.028      0.304

RESPAPPR ON
SEXISM            -0.529      0.312     -1.697      0.090

Intercepts
LIKING             5.191      1.299      3.996      0.000
RESPAPPR           6.567      1.555      4.224      0.000

Residual Variances
LIKING             1.361      0.399      3.414      0.001
RESPAPPR           1.910      0.311      6.132      0.000

Group ONE

LIKING   ON
RESPAPPR           0.383      0.068      5.642      0.000
SEXISM             0.253      0.088      2.896      0.004

RESPAPPR ON
SEXISM             0.281      0.125      2.247      0.025

Intercepts
LIKING             2.447      0.468      5.231      0.000
RESPAPPR           3.880      0.655      5.920      0.000

Residual Variances
LIKING             0.515      0.072      7.183      0.000
RESPAPPR           0.971      0.172      5.652      0.000

K2DIFF             0.523      0.279      1.878      0.060
P1DIFF             0.810      0.336      2.412      0.016

QUALITY OF NUMERICAL RESULTS

Condition Number for the Information Matrix              0.993E-04
(ratio of smallest to largest eigenvalue)

TECHNICAL 1 OUTPUT

PARAMETER SPECIFICATION FOR ZERO

NU
LIKING        RESPAPPR      SEXISM
________      ________      ________
1           0             0             0

LAMBDA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING             0             0             0
RESPAPPR           0             0             0
SEXISM             0             0             0

THETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING             0
RESPAPPR           0             0
SEXISM             0             0             0

ALPHA
LIKING        RESPAPPR      SEXISM
________      ________      ________
1           1             2             0

BETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING             0             3             4
RESPAPPR           0             0             5
SEXISM             0             0             0

PSI
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING             6
RESPAPPR           0             7
SEXISM             0             0             0

PARAMETER SPECIFICATION FOR ONE

NU
LIKING        RESPAPPR      SEXISM
________      ________      ________
1           0             0             0

LAMBDA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING             0             0             0
RESPAPPR           0             0             0
SEXISM             0             0             0

THETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING             0
RESPAPPR           0             0
SEXISM             0             0             0

ALPHA
LIKING        RESPAPPR      SEXISM
________      ________      ________
1           8             9             0

BETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING             0             3            10
RESPAPPR           0             0            11
SEXISM             0             0             0

PSI
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING            12
RESPAPPR           0            13
SEXISM             0             0             0

PARAMETER SPECIFICATION FOR THE ADDITIONAL PARAMETERS

K2DIFF        P1DIFF
________      ________
1                 14            15

STARTING VALUES FOR ZERO

NU
LIKING        RESPAPPR      SEXISM
________      ________      ________
1         0.000         0.000         0.000

LAMBDA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         1.000         0.000         0.000
RESPAPPR       0.000         1.000         0.000
SEXISM         0.000         0.000         1.000

THETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         0.000
RESPAPPR       0.000         0.000
SEXISM         0.000         0.000         0.000

ALPHA
LIKING        RESPAPPR      SEXISM
________      ________      ________
1         5.310         3.884         5.071

BETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         0.000         0.000         0.000
RESPAPPR       0.000         0.000         0.000
SEXISM         0.000         0.000         0.000

PSI
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         0.826
RESPAPPR       0.000         1.035
SEXISM         0.000         0.000         0.574

STARTING VALUES FOR ONE

NU
LIKING        RESPAPPR      SEXISM
________      ________      ________
1         0.000         0.000         0.000

LAMBDA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         1.000         0.000         0.000
RESPAPPR       0.000         1.000         0.000
SEXISM         0.000         0.000         1.000

THETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         0.000
RESPAPPR       0.000         0.000
SEXISM         0.000         0.000         0.000

ALPHA
LIKING        RESPAPPR      SEXISM
________      ________      ________
1         5.310         3.884         5.138

BETA
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         0.000         0.000         0.000
RESPAPPR       0.000         0.000         0.000
SEXISM         0.000         0.000         0.000

PSI
LIKING        RESPAPPR      SEXISM
________      ________      ________
LIKING         0.826
RESPAPPR       0.000         1.035
SEXISM         0.000         0.000         0.625

STARTING VALUES FOR THE ADDITIONAL PARAMETERS

K2DIFF        P1DIFF
________      ________
1              0.500         0.500

PLOT INFORMATION

The following plots are available:

Histograms (sample values, estimated values, residuals)
Scatterplots (sample values, estimated values, residuals)

DIAGRAM INFORMATION

Use View Diagram under the Diagram menu in the Mplus Editor to view the diagram.
If running Mplus from the Mplus Diagrammer, the diagram opens automatically.

Diagram output
c:\users\gryphon\desktop\chapter3\ex3.29.dgm

Beginning Time:  15:36:55
Ending Time:  15:36:55
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-2015 Muthen & Muthen

```