manip-formula: Manipulate model formulas

Description Usage Arguments Author(s) See Also Examples

Description

simplify.formula rewrites a formula using shorthand notation. Currently only the factor crossing operator * is applied, so that expanded expression such as a+b+a:b becomes a*b. expand.formula does the opposite, additionally expanding other expressions, i.e. all nesting (/), grouping and ^.

Usage

1
2

Arguments

x

a formula or an object from which it can be extracted (such as a fitted model object).

Author(s)

Kamil Bartoń

See Also

formula

delete.response, drop.terms, and reformulate

Examples

1
2
3
4
simplify.formula(y ~ a + b + a:b + (c + b)^2)
simplify.formula(y ~ a + b + a:b + 0)

expand.formula(~ a * b)

MuMIn documentation built on July 25, 2018, 1:04 a.m.