getCovariateFormula function

Extract Covariates Formula

Extract Covariates Formula

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.

Returns

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

Author(s)

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

See Also

getCovariate

Examples

getCovariateFormula(y ~ x | g) getCovariateFormula(y ~ x)
  • Maintainer: R Core Team
  • License: GPL (>= 2)
  • Last published: 2025-03-31