Learn R Programming

nlme (version 3.1-166)

getCovariateFormula: Extract Covariates Formula

Description

The right hand side of formula(object), without any conditioning expressions (i.e. any expressions after a | operator) is returned as a one-sided formula.

Usage

getCovariateFormula(object)

Value

a one-sided formula describing the covariates associated with

formula(object).

Arguments

object

any object from which a formula can be extracted.

Author

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

See Also

getCovariate

Examples

Run this code
getCovariateFormula(y ~ x | g)
getCovariateFormula(y ~ x)

Run the code above in your browser using DataLab