predict.nlmm | R Documentation |
nlmm
Object
The predictions at level 0 correspond to predictions based only on the fixed effects estimates. The predictions at level 1 are obtained by adding the best linear predictions of the random effects to the predictions at level 0.
## S3 method for class 'nlmm'
predict(object, level = 0, ...)
object |
an |
level |
an integer vector giving the level of grouping to be used in obtaining the predictions. |
... |
not used. |
a vector of predictions.
Marco Geraci
Geraci, M. and Farcomeni A. (2020). A family of linear mixed-effects models using the generalized Laplace distribution. Statistical Methods in Medical Research, 29(9), 2665-2682.
nlmm
, ranef.nlmm
, fixef.nlmm
## Not run:
data(rats)
fit <- nlmm(y ~ trt*time, random = ~ 1, group = id, data = rats,
control = nlmmControl(multistart = FALSE))
# Individual growth trajectories
predict(fit, level = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.