all.factors {pda}R Documentation

determine names of all factors, covariates, predictors (factors & covariates)or response used in model fit

Description

Usage

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

## 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)

[Package pda version 1.2-7 Index]