% File nlme/man/getCovariate.Rd % Part of the nlme package for R % Distributed under GPL 2 or later: see nlme/LICENCE.note \name{getCovariate} \title{Extract Covariate from an Object} \usage{ getCovariate(object, form, data) } \alias{getCovariate} \arguments{ \item{object}{any object with a \code{covariate} component} \item{form}{an optional one-sided formula specifying the covariate(s) to be extracted. Defaults to \code{formula(object)}.} \item{data}{a data frame in which to evaluate the variables defined in \code{form}. } } \description{ This function is generic; method functions can be written to handle specific classes of objects. Classes which already have methods for this function include \code{corStruct}, \code{corSpatial}, \code{data.frame}, and \code{varFunc}. } \value{ will depend on the method function used; see the appropriate documentation. } \references{ Pinheiro, J.C., and Bates, D.M. (2000) "Mixed-Effects Models in S and S-PLUS", Springer, esp. p. 100. } \author{José Pinheiro and Douglas Bates \email{bates@stat.wisc.edu}} \seealso{ \code{\link{getCovariate.corStruct}}, \code{\link{getCovariate.data.frame}}, \code{\link{getCovariate.varFunc}}, \code{\link{getCovariateFormula}} } \examples{ ## see the method function documentation } \keyword{models}