View difference between Paste ID: RV8hPURt and
SHOW: | | - or go back to the newest paste.
1-
1+
TITLE:
2
    Replication Singer & Willet, table 12.2, p. 413
3
    !MODEL B: linear baseline hazard model, no covariates
4
    !METHOD: Mixture modeling
5
    !u1-u9 are binary indicator of event occurence,
6
    !in the format, specified in Masyn (2003).
7
8
DATA:
9
    FILE            =   tenure_wide.dat;
10
11
VARIABLE:
12
    NAMES           =   u1-u9 x1-x5;
13
    MISSING         =   . ;
14
    USEVARIABLES    =   u1-u9;
15
    CATEGORICAL     =   u1-u9;
16
    CLASSES         =   c(1);
17
18
ANALYSIS:
19
    TYPE            =   MIXTURE;
20
21
MODEL:
22
23
      %OVERALL%
24
        eta0 BY u1-u9@1 ;
25
        eta1 BY u1@0 u2@1 u3@2 u4@3 u5@4 u6@5 u7@6 u8@7 u9@8 ;
26
          
27
        [eta0* eta1*] ;
28
29
      %c#1%
30
        [u1$1@0 u2$1@0 u3$1@0 u4$1@0 u5$1@0 u6$1@0 u7$1@0] (1);
31
        [u8$1@0 u9$1@0] (1);