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.

getCovariateFormula(object)

Arguments

object

any object from which a formula can be extracted.

Value

a one-sided formula describing the covariates associated with formula(object).

Author

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

See also

Examples

getCovariateFormula(y ~ x | g)
#> ~x
getCovariateFormula(y ~ x)
#> ~x