Mplus VERSION 8
MUTHEN & MUTHEN
04/10/2017   5:08 AM

INPUT INSTRUCTIONS

  TITLE:	this is an example of a two-level time series analysis
      with a first-order autoregressive AR(1) factor analysis model
  	for a single continuous indicator and measurement error
  DATA:	FILE = ex9.33.dat;
  VARIABLE:	NAMES = y subject;
  	CLUSTER = subject;
  ANALYSIS:	TYPE = TWOLEVEL RANDOM;
  	ESTIMATOR = BAYES;
  	PROCESSORS = 2;
  	BITERATIONS = (5000);
  MODEL:	%WITHIN%
  	f BY y@1(&1);
  	s | f ON f&1;
  	%BETWEEN%
  	y WITH s;
  OUTPUT:	TECH1 TECH8;
  PLOT:	TYPE = PLOT3;	



INPUT READING TERMINATED NORMALLY



this is an example of a two-level time series analysis
with a first-order autoregressive AR(1) factor analysis model
for a single continuous indicator and measurement error

SUMMARY OF ANALYSIS

Number of groups                                                 1
Number of observations                                       20000

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

Observed dependent variables

  Continuous
   Y

Continuous latent variables
   F           F&1         S

Variables with special functions

  Cluster variable      SUBJECT

Estimator                                                    BAYES
Specifications for Bayesian Estimation
  Point estimate                                            MEDIAN
  Number of Markov chain Monte Carlo (MCMC) chains               2
  Random seed for the first chain                                0
  Starting value information                           UNPERTURBED
  Treatment of categorical mediator                         LATENT
  Algorithm used for Markov chain Monte Carlo           GIBBS(PX1)
  Convergence criterion                                  0.500D-01
  Maximum number of iterations                               50000
  K-th iteration used for thinning                               1

Input data file(s)
  ex9.33.dat
Input data format  FREE


SUMMARY OF DATA

     Number of clusters                        200

       Size (s)    Cluster ID with Size s

        100        1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
                   22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
                   40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
                   58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
                   76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
                   94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
                   109 110 111 112 113 114 115 116 117 118 119 120 121
                   122 123 124 125 126 127 128 129 130 131 132 133 134
                   135 136 137 138 139 140 141 142 143 144 145 146 147
                   148 149 150 151 152 153 154 155 156 157 158 159 160
                   161 162 163 164 165 166 167 168 169 170 171 172 173
                   174 175 176 177 178 179 180 181 182 183 184 185 186
                   187 188 189 190 191 192 193 194 195 196 197 198 199
                   200




UNIVARIATE SAMPLE STATISTICS


     UNIVARIATE HIGHER-ORDER MOMENT DESCRIPTIVE STATISTICS

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

     Y                     0.021      -0.004      -5.636    0.01%      -1.193     -0.345      0.012
           20000.000       2.080      -0.006       5.161    0.01%       0.379      1.255


THE MODEL ESTIMATION TERMINATED NORMALLY

     USE THE FBITERATIONS OPTION TO INCREASE THE NUMBER OF ITERATIONS BY A FACTOR
     OF AT LEAST TWO TO CHECK CONVERGENCE AND THAT THE PSR VALUE DOES NOT INCREASE.



MODEL FIT INFORMATION

Number of Free Parameters                               7

Information Criteria

          Deviance (DIC)                        56982.137
          Estimated Number of Parameters (pD)   12510.962



MODEL RESULTS

                                Posterior  One-Tailed         95% C.I.
                    Estimate       S.D.      P-Value   Lower 2.5%  Upper 2.5%  Significance

Within Level

 F        BY
    Y                  1.000       0.000      0.000       1.000       1.000

 Residual Variances
    Y                  0.549       0.066      0.000       0.431       0.667      *
    F                  0.960       0.072      0.000       0.831       1.090      *

Between Level

 Y        WITH
    S                  0.000       0.010      0.484      -0.021       0.020

 Means
    Y                  0.021       0.049      0.327      -0.075       0.117
    S                  0.302       0.021      0.000       0.264       0.346      *

 Variances
    Y                  0.437       0.048      0.000       0.356       0.544      *
    S                  0.025       0.004      0.000       0.018       0.035      *


TECHNICAL 1 OUTPUT


     PARAMETER SPECIFICATION FOR WITHIN


           NU
              Y
              ________
                    0


           LAMBDA
              F             F&1           Y
              ________      ________      ________
 Y                  0             0             0


           THETA
              Y
              ________
 Y                  0


           ALPHA
              F             F&1           Y
              ________      ________      ________
                    0             0             0


           BETA
              F             F&1           Y
              ________      ________      ________
 F                  0             0             0
 F&1                0             0             0
 Y                  0             0             0


           PSI
              F             F&1           Y
              ________      ________      ________
 F                  1
 F&1                0             0
 Y                  0             0             2


     PARAMETER SPECIFICATION FOR BETWEEN


           NU
              Y
              ________
                    0


           LAMBDA
              S             Y
              ________      ________
 Y                  0             0


           THETA
              Y
              ________
 Y                  0


           ALPHA
              S             Y
              ________      ________
                    3             4


           BETA
              S             Y
              ________      ________
 S                  0             0
 Y                  0             0


           PSI
              S             Y
              ________      ________
 S                  5
 Y                  6             7


     STARTING VALUES FOR WITHIN


           NU
              Y
              ________
                0.000


           LAMBDA
              F             F&1           Y
              ________      ________      ________
 Y              0.000         0.000         1.000


           THETA
              Y
              ________
 Y              0.000


           ALPHA
              F             F&1           Y
              ________      ________      ________
                0.000         0.000         0.000


           BETA
              F             F&1           Y
              ________      ________      ________
 F              0.000         0.000         0.000
 F&1            0.000         0.000         0.000
 Y              1.000         0.000         0.000


           PSI
              F             F&1           Y
              ________      ________      ________
 F              1.000
 F&1            0.000         1.000
 Y              0.000         0.000         1.040


     STARTING VALUES FOR BETWEEN


           NU
              Y
              ________
                0.000


           LAMBDA
              S             Y
              ________      ________
 Y              0.000         1.000


           THETA
              Y
              ________
 Y              0.000


           ALPHA
              S             Y
              ________      ________
                0.000         0.021


           BETA
              S             Y
              ________      ________
 S              0.000         0.000
 Y              0.000         0.000


           PSI
              S             Y
              ________      ________
 S              1.000
 Y              0.000         1.040



     PRIORS FOR ALL PARAMETERS            PRIOR MEAN      PRIOR VARIANCE     PRIOR STD. DEV.

     Parameter 1~IG(-1.000,0.000)          infinity            infinity            infinity
     Parameter 2~IG(-1.000,0.000)          infinity            infinity            infinity
     Parameter 3~N(0.000,infinity)           0.0000            infinity            infinity
     Parameter 4~N(0.000,infinity)           0.0000            infinity            infinity
     Parameter 5~IW(0.000,-3)              infinity            infinity            infinity
     Parameter 6~IW(0.000,-3)              infinity            infinity            infinity
     Parameter 7~IW(0.000,-3)              infinity            infinity            infinity


TECHNICAL 8 OUTPUT



     Kolmogorov-Smirnov comparing posterior distributions across chains 1 and 2 using 100 draws.





     Parameter   KS Statistic P-value
     Parameter 1    0.1800    0.0691
     Parameter 2    0.1500    0.1930
     Parameter 4    0.0600    0.9921
     Parameter 3    0.0500    0.9995
     Parameter 7    0.0400    1.0000
     Parameter 5    0.0000    1.0000
     Parameter 6    0.0000    1.0000



     Simulated prior distributions

     Parameter       Prior Mean  Prior Variance  Prior Std. Dev.


     Parameter 1 Improper Prior
     Parameter 2 Improper Prior
     Parameter 3 Improper Prior
     Parameter 4 Improper Prior
     Parameter 5 Improper Prior
     Parameter 6 Improper Prior
     Parameter 7 Improper Prior


   TECHNICAL 8 OUTPUT FOR BAYES ESTIMATION

     CHAIN    BSEED
     1        0
     2        285380

                     POTENTIAL       PARAMETER WITH
     ITERATION    SCALE REDUCTION      HIGHEST PSR
     100              1.034               3
     200              3.165               1
     300              2.135               2
     400              2.543               2
     500              4.584               2
     600              2.980               2
     700              2.249               2
     800              2.361               2
     900              1.590               2
     1000             1.241               2
     1100             1.332               2
     1200             1.455               2
     1300             1.457               2
     1400             1.561               2
     1500             1.479               2
     1600             1.256               2
     1700             1.183               2
     1800             1.156               2
     1900             1.238               2
     2000             1.182               2
     2100             1.030               2
     2200             1.002               1
     2300             1.042               1
     2400             1.142               1
     2500             1.246               2
     2600             1.376               1
     2700             1.515               1
     2800             1.687               2
     2900             1.819               2
     3000             1.918               2
     3100             2.001               2
     3200             2.049               2
     3300             2.073               2
     3400             2.048               2
     3500             2.017               2
     3600             2.024               2
     3700             2.046               2
     3800             2.126               2
     3900             2.169               2
     4000             2.016               2
     4100             1.869               2
     4200             1.736               2
     4300             1.606               2
     4400             1.555               2
     4500             1.514               2
     4600             1.472               2
     4700             1.455               2
     4800             1.407               2
     4900             1.355               2
     5000             1.310               2
     5100             1.269               2
     5200             1.216               2
     5300             1.177               2
     5400             1.152               2
     5500             1.137               2
     5600             1.129               2
     5700             1.118               2
     5800             1.102               2
     5900             1.104               2
     6000             1.095               2
     6100             1.079               2
     6200             1.062               2


PLOT INFORMATION

The following plots are available:

  Histograms (sample values)
  Scatterplots (sample values)
  Between-level histograms (sample values, sample means/variances)
  Between-level scatterplots (sample values, sample means/variances)
  Time series plots (sample values, ACF, PACF)
  Bayesian posterior parameter distributions
  Bayesian posterior parameter trace plots
  Bayesian autocorrelation plots

     Beginning Time:  05:08:42
        Ending Time:  05:09:48
       Elapsed Time:  00:01:06



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-2017 Muthen & Muthen

Back to examples