all.factors: determine names of all factors, covariates, predictors...

Usage Arguments Value See Also Examples

Usage

1
2
3
all.factors(object, data)
all.covars(object,data)
all.predictors(object, data)

Arguments

object

object from linear model fit

data

data frame in which to interpret the variables named inthe full and reduced objects (determined from reduced fit if omitted)

Value

list of names of factors, covariates or predictors (factors \& covariates) or response used in model fit

See Also

all.names.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
fit <- lm(y~x+a*b,data)
# return c("a","b")
all.factors(fit)
# return "x"
all.covars(fit)
# return c("x","a","b")
all.predictors(fit)
# return "y"
model.response(fit)

## End(Not run)

byandell/pda documentation built on May 13, 2019, 9:27 a.m.