|
Chapter Contents |
Previous |
Next |
| The NLMIXED Procedure |
The RANDOM statement defines the random effects and their
distribution. The random effects must be represented by symbols
that appear in your SAS programming statements. They typically
influence the mean value of the distribution specified in the MODEL
statement. The RANDOM statement consists of a list of the random
effects (usually just one or two symbols), a tilde
, the distribution for the random
effects, and then a SUBJECT= variable.
The only distribution currently available for the random effects is normal(m,v) with mean m and variance v. This syntax is illustrated as follows for one effect:
random u ~ normal(0,s2u) subject=clinic;
For multiple effects, you should specify bracketed vectors for m and v, the latter consisting of the lower triangle of the random-effects variance matrix. This is illustrated for two random effects as follows.
random b1 b2 ~ normal([0,0],[s2b1,cb12,s2b2]) subject=person;
The SUBJECT= variable determines when new realizations of the random effects are assumed to occur. PROC NLMIXED assumes that a new realization occurs whenever the SUBJECT= variable changes from the previous observation, so your input data set should be clustered according to this variable. One easy way to accomplish this is to run PROC SORT prior to calling PROC NLMIXED using the SUBJECT= variable as the BY variable.
Only one RANDOM statement is permitted, so multilevel nonlinear mixed models are not currently accommodated.
The following options are available in the RANDOM statement:
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.