predict.nlmm {nlmm} | R Documentation |
Predictions from an nlmm
Object
Description
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.
Usage
## S3 method for class 'nlmm'
predict(object, level = 0, ...)
Arguments
object |
an |
level |
an integer vector giving the level of grouping to be used in obtaining the predictions. |
... |
not used. |
Value
a vector of predictions.
Author(s)
Marco Geraci
References
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.
See Also
Examples
## 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)
[Package nlmm version 1.1.0 Index]