Learn R Programming

lmms (version 1.3.3)

predict.lmmspline: Predicts fitted values of an lmmspline Object

Description

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

Usage

"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

Run this code
## 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)

Run the code above in your browser using DataLab