Mplus VERSION 7.2
MUTHEN & MUTHEN
05/07/2014   2:03 PM

INPUT INSTRUCTIONS

  TITLE:	this is an example of a negative binomial
  		model for a count dependent variable with
  		two covariates
  MONTECARLO:			
  		NAMES = u1 x1 x3;
  		NOBSERVATIONS = 500;
  		NREPS = 1;
  		SEED = 53487;
  		GENERATE = u1(nb);
  		COUNT = u1(nb);
  		SAVE = ex3.8b.dat;	
  MODEL POPULATION:
  		[x1-x3@0];
  		x1-x3@1;
  		u1 ON x1*.5 x3*.3;
  		[u1*1];
          u1*2;
  MODEL:
  		u1 ON x1*.5 x3*.3;
  		[u1*1];
          u1*2;
  OUTPUT:	TECH8;



INPUT READING TERMINATED NORMALLY



this is an example of a negative binomial
model for a count dependent variable with
two covariates

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                                    1
Number of independent variables                                  2
Number of continuous latent variables                            0

Observed dependent variables

  Count
   U1

Observed independent variables
   X1          X3


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
Optimization algorithm                                         EMA
Integration Specifications
  Type                                                    STANDARD
  Number of integration points                                  15
  Dimensions of numerical integration                            0
  Adaptive quadrature                                           ON
Cholesky                                                       OFF


SAMPLE STATISTICS FOR THE FIRST REPLICATION


     SAMPLE STATISTICS


           Means
              X1            X3
              ________      ________
 1              0.000        -0.067


           Covariances
              X1            X3
              ________      ________
 X1             1.041
 X3             0.023         0.960


           Correlations
              X1            X3
              ________      ________
 X1             1.000
 X3             0.023         1.000




MODEL FIT INFORMATION

Number of Free Parameters                        4

Loglikelihood

    H0 Value

        Mean                             -1087.414
        Std Dev                              0.000
        Number of successful computations        1

             Proportions                   Percentiles
        Expected    Observed         Expected       Observed
           0.990       0.000        -1087.414      -1087.414
           0.980       0.000        -1087.414      -1087.414
           0.950       0.000        -1087.414      -1087.414
           0.900       0.000        -1087.414      -1087.414
           0.800       0.000        -1087.414      -1087.414
           0.700       0.000        -1087.414      -1087.414
           0.500       0.000        -1087.414      -1087.414
           0.300       0.000        -1087.414      -1087.414
           0.200       0.000        -1087.414      -1087.414
           0.100       0.000        -1087.414      -1087.414
           0.050       0.000        -1087.414      -1087.414
           0.020       0.000        -1087.414      -1087.414
           0.010       0.000        -1087.414      -1087.414

Information Criteria

    Akaike (AIC)

        Mean                              2182.829
        Std Dev                              0.000
        Number of successful computations        1

             Proportions                   Percentiles
        Expected    Observed         Expected       Observed
           0.990       0.000         2182.829       2182.829
           0.980       0.000         2182.829       2182.829
           0.950       0.000         2182.829       2182.829
           0.900       0.000         2182.829       2182.829
           0.800       0.000         2182.829       2182.829
           0.700       0.000         2182.829       2182.829
           0.500       0.000         2182.829       2182.829
           0.300       0.000         2182.829       2182.829
           0.200       0.000         2182.829       2182.829
           0.100       0.000         2182.829       2182.829
           0.050       0.000         2182.829       2182.829
           0.020       0.000         2182.829       2182.829
           0.010       0.000         2182.829       2182.829

    Bayesian (BIC)

        Mean                              2199.687
        Std Dev                              0.000
        Number of successful computations        1

             Proportions                   Percentiles
        Expected    Observed         Expected       Observed
           0.990       0.000         2199.687       2199.687
           0.980       0.000         2199.687       2199.687
           0.950       0.000         2199.687       2199.687
           0.900       0.000         2199.687       2199.687
           0.800       0.000         2199.687       2199.687
           0.700       0.000         2199.687       2199.687
           0.500       0.000         2199.687       2199.687
           0.300       0.000         2199.687       2199.687
           0.200       0.000         2199.687       2199.687
           0.100       0.000         2199.687       2199.687
           0.050       0.000         2199.687       2199.687
           0.020       0.000         2199.687       2199.687
           0.010       0.000         2199.687       2199.687

    Sample-Size Adjusted BIC (n* = (n + 2) / 24)

        Mean                              2186.991
        Std Dev                              0.000
        Number of successful computations        1

             Proportions                   Percentiles
        Expected    Observed         Expected       Observed
           0.990       0.000         2186.991       2186.991
           0.980       0.000         2186.991       2186.991
           0.950       0.000         2186.991       2186.991
           0.900       0.000         2186.991       2186.991
           0.800       0.000         2186.991       2186.991
           0.700       0.000         2186.991       2186.991
           0.500       0.000         2186.991       2186.991
           0.300       0.000         2186.991       2186.991
           0.200       0.000         2186.991       2186.991
           0.100       0.000         2186.991       2186.991
           0.050       0.000         2186.991       2186.991
           0.020       0.000         2186.991       2186.991
           0.010       0.000         2186.991       2186.991



MODEL RESULTS

                              ESTIMATES              S. E.     M. S. E.  95%  % Sig
                 Population   Average   Std. Dev.   Average             Cover Coeff
 U1         ON
  X1                  0.500     0.6646     0.0000     0.0740     0.0271 0.000 1.000
  X3                  0.300     0.2562     0.0000     0.0736     0.0019 1.000 1.000

 Intercepts
  U1                  1.000     1.1209     0.0000     0.0742     0.0146 1.000 1.000

 Dispersion
  U1                  2.000     2.3880     0.0000     0.2002     0.1505 1.000 1.000


QUALITY OF NUMERICAL RESULTS

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


TECHNICAL 1 OUTPUT


     PARAMETER SPECIFICATION


           NU
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 1                  0             0             0             0


           LAMBDA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1               0             0             0             0
 U1                 0             0             0             0
 X1                 0             0             0             0
 X3                 0             0             0             0


           THETA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1               0
 U1                 0             0
 X1                 0             0             0
 X3                 0             0             0             0


           ALPHA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 1                  0             1             0             0


           BETA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1               0             0             0             0
 U1                 0             0             2             3
 X1                 0             0             0             0
 X3                 0             0             0             0


           PSI
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1               0
 U1                 0             4
 X1                 0             0             0
 X3                 0             0             0             0


     STARTING VALUES


           NU
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 1              0.000         0.000         0.000         0.000


           LAMBDA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           1.000         0.000         0.000         0.000
 U1             0.000         1.000         0.000         0.000
 X1             0.000         0.000         1.000         0.000
 X3             0.000         0.000         0.000         1.000


           THETA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           0.000
 U1             0.000         0.000
 X1             0.000         0.000         0.000
 X3             0.000         0.000         0.000         0.000


           ALPHA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 1            -20.000         1.000         0.000         0.000


           BETA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           0.000         0.000         0.000         0.000
 U1             0.000         0.000         0.500         0.300
 X1             0.000         0.000         0.000         0.000
 X3             0.000         0.000         0.000         0.000


           PSI
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           0.000
 U1             0.000         2.000
 X1             0.000         0.000         0.500
 X3             0.000         0.000         0.000         0.500


     POPULATION VALUES


           NU
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 1              0.000         0.000         0.000         0.000


           LAMBDA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           1.000         0.000         0.000         0.000
 U1             0.000         1.000         0.000         0.000
 X1             0.000         0.000         1.000         0.000
 X3             0.000         0.000         0.000         1.000


           THETA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           0.000
 U1             0.000         0.000
 X1             0.000         0.000         0.000
 X3             0.000         0.000         0.000         0.000


           ALPHA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 1            -20.000         1.000         0.000         0.000


           BETA
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           0.000         0.000         0.000         0.000
 U1             0.000         0.000         0.500         0.300
 X1             0.000         0.000         0.000         0.000
 X3             0.000         0.000         0.000         0.000


           PSI
              U1#1          U1            X1            X3
              ________      ________      ________      ________
 U1#1           0.000
 U1             0.000         2.000
 X1             0.000         0.000         1.000
 X3             0.000         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.10948588D+04    0.0000000    0.0000000  EM
              2 -0.10878742D+04    6.9845793    0.0063794  EM
              3 -0.10874183D+04    0.4558415    0.0004190  EM
              4 -0.10874144D+04    0.0039924    0.0000037  EM
              5 -0.10874144D+04    0.0000004    0.0000000  EM


SAVEDATA INFORMATION

  Order of variables

    U1
    X1
    X3

  Save file
    ex3.8b.dat

  Save file format           Free
  Save file record length    10000


     Beginning Time:  14:03:45
        Ending Time:  14:03:45
       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-2014 Muthen & Muthen

Back to examples