getResponseFormula function

Extract Formula Specifying Response Variable

Extract Formula Specifying Response Variable

The left hand side of formula{object} is returned as a one-sided formula.

getResponseFormula(object)

Arguments

  • object: any object from which a formula can be extracted.

Returns

a one-sided formula with the response variable associated with formula{object}.

Author(s)

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

See Also

getResponse

Examples

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