getCovariate function

Extract Covariate from an Object

Extract Covariate from an Object

This function is generic; method functions can be written to handle specific classes of objects. Classes which already have methods for this function include corStruct, corSpatial, data.frame, and varFunc.

getCovariate(object, form, data)

Arguments

  • object: any object with a covariate component
  • form: an optional one-sided formula specifying the covariate(s) to be extracted. Defaults to formula(object).
  • data: a data frame in which to evaluate the variables defined in form.

Returns

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(s)

José Pinheiro and Douglas Bates bates@stat.wisc.edu

See Also

getCovariate.corStruct, getCovariate.data.frame, getCovariate.varFunc, getCovariateFormula

  • Maintainer: R Core Team
  • License: GPL (>= 2)
  • Last published: 2025-03-31