Multilevel Modeling ![]() aML product info
|
A Multilevel Example with Unobserved HeterogeneityConsider a simple multilevel linear regression model given by![]() ![]() ![]() ![]() ![]() Without going into details, note the following aspects. We defined a "regressor set" BetaX, which corresponds todefine regressor set BetaX; var = <list of variables X>; define normal distribution; dim=1; name=eps; define normal distribution; dim=1; name=u; continuous model; outcome = y; model = regressor set BetaX + residual(draw=1, ref=eps) + residual(draw=_iid, ref=u); ![]() ![]() ![]() ![]() ![]() ![]() ![]() How does aML know that there are repeated measures of outcome y, i.e.,
that this is a multilevel model? This is a data issue. When we created the data
(not shown here), outcome variable y was among variables at a lower level of
aggregation. During the estimation stage, the level of a variable is of no concern;
aML will automatically include as many likelihood modules as there are outcome
measures. Explanatory variables The example generalizes to all other types of outcomes that aML support, such as durations (hazard models), categorical outcomes (simple/ordered/multinomial probit and logit models), and count outcomes (Poisson, binomial, and negative binomial models). Outcome types may also be mixed, as illustrated in the next example.
To multiprocess example |
This page was last updated on 9 January 2006 Send comments to webmaster@applied-ml.com.