Predicts fitted values of an lmmspline Object

Share:

Description

Predicts the fitted values of an lmmspline object for time points of interest.

Usage

1
2
## S3 method for class 'lmmspline'
predict(object, timePredict, numCores, ...)

Arguments

object

an object inheriting from class lmmspline.

timePredict

an optional numeric vector. Vector of time points to predict fitted values. If missing uses design points.

numCores

alternative numeric value indicating the number of CPU cores to be used for parallelization. By default estimated automatically.

...

ignored.

Value

matrix containing predicted values for the requested time points from argument timePredict.

Examples

1
2
3
4
5
6
7
8
## Not run: 
data(kidneySimTimeGroup)
G1 <- which(kidneySimTimeGroup$group=="G1")
testLMMSpline<- lmmSpline(data=kidneySimTimeGroup$data[G1,],
                 time=kidneySimTimeGroup$time[G1],
                 sampleID=kidneySimTimeGroup$sampleID[G1],keepModels=T)
mat.predict <- predict(testLMMSpline, timePredict=c(seq(1,4, by=0.5)))
## End(Not run)