predict.slm: Predict Method for Semiparametric Linear Mixed Effects Model...

predict.slmR Documentation

Predict Method for Semiparametric Linear Mixed Effects Model Fits

Description

Predicted Values on different levels of random effects with the spline fit as part of fixed effects

Usage

## S3 method for class 'slm'
predict(object, newdata=NULL, ...)

Arguments

object

an object inheriting from class slm, representing a semi-parametric linear mixed effects model fit.

newdata

a data frame containing the values at which predictions are required. Only those predictors, referred to in the right side of the formula in the object, need to be present by name in newdata. Default is NULL, where predictions are made at the same values used to compute the object.

...

other arguments, but currently unused.

Value

returned is a data.frame with columns given by the predictions at different levels and the grouping factors. Note that the smooth part of the spline fit is regarded as fixed.

Author(s)

Chunlei Ke chunlei_ke@yahoo.com and Yuedong Wang yuedong@pstat.ucsb.edu.

References

Wang, Y. (1998) Mixed Effects Smoothing Spline ANOVA. JRSS, Series B, 60:159–174.

Pinherio, J. C. and Bates, D. M. (2000) Mixed-effects Models in S and S-Plus. Springer.

See Also

slm

Examples

## Not run: 
data(dog)

dog.fit<-slm(y~group*time, rk=list(cubic(time), shrink1(group),
    rk.prod(kron(time-0.5),shrink1(group)),rk.prod(cubic(time), 
    shrink1(group))), random=list(dog=~1), data=dog)

predict(dog.fit)

## End(Not run)

assist documentation built on Aug. 22, 2023, 9:12 a.m.

Related to predict.slm in assist...