reorderTerms {ERSA}R Documentation

Re-order model terms

Description

Re-order model terms

Usage

pvalOrder(m, d = NULL, refit = TRUE)

bselOrder(m, d = NULL, refit = TRUE, maxNPred = NULL)

fselOrder(m, d = NULL, refit = TRUE, maxNPred = NULL)

revPredOrder(m, d = NULL, refit = TRUE)

randomPredOrder(m, d = NULL, refit = TRUE)

regsubsetsOrder(m, d = NULL, refit = TRUE, collapse = TRUE)

Arguments

m

an lm objecct

d

the data frame. If NULL, attempts to extract from m.

refit

TRUE or FALSE

maxNPred

maximum number of predictors to use, defaults to all.

collapse

TRUE or FALSE

Value

a vector of terms in order last to first, or an lm if refit=TRUE. regsubsetsOrder returns a list of predictor vectors, or a list of fits

Functions

Examples

bselOrder(lm(mpg~wt+hp+disp, data=mtcars))
fselOrder(lm(mpg~wt+hp+disp, data=mtcars))
revPredOrder(lm(mpg~wt+hp+disp, data=mtcars))
randomPredOrder(lm(mpg~wt+hp+disp, data=mtcars))
regsubsetsOrder(lm(mpg~wt+hp+disp, data=mtcars))

[Package ERSA version 0.1.4 Index]