Download Example session MLwiN

Transcript
Example session MLwiN
Multilevel logistic regression
This is the result presented also in Table 14.1 of Snijders & Bosker (1999).
The value 1.000 for the level-one variance parameter is only a proportionality constant, not the level-one variance itself. You do not need to report it
in tables. Formally speaking, if this parameter is denoted by Ωe like in the
MLwiN Equation window, the level-one variance of the proportion of successes
is Ωe πij (1 − πij )/denomij , where πij is the probability of a positive (“yes”)
outcome for the cases (for denom = 1, there is only one case) indicated by (i, j).
If you also wish to reproduce the results of Example 14.3 (Table 14.2) in Snijders & Bosker (1999), you first need to obey macro IS12TRANS.MAC for some
additional data manipulations. This makes available the transformed age variables used for Example 14.3. The functions defined in this example correspond
to the variable names as
• X1 (t) = age
• X2 (t) = ag2
• X3 (t) = ag2>10
• X4 (t) = ag2>20 .
By including these four variables with fixed effects and estimating the parameters, you will obtain the results presented as Model 1 in Table 14.2. To obtain
the results of Model 2, also include a fixed effect of the variable relig.
20