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.

Value

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

Author

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

See also

Examples

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