reorderTerms: Re-order model terms

Description Usage Arguments Value Functions Examples

Description

Re-order model terms

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
pvalOrder(m, d = NULL, refit = TRUE)

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

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

revPredOrd(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

1
2
3
4
5
bselOrder(lm(mpg~wt+hp+disp, data=mtcars))
fselOrder(lm(mpg~wt+hp+disp, data=mtcars))
revPredOrd(lm(mpg~wt+hp+disp, data=mtcars))
randomPredOrder(lm(mpg~wt+hp+disp, data=mtcars))
regsubsetsOrder(lm(mpg~wt+hp+disp, data=mtcars))

cbhurley/ERSA documentation built on July 30, 2018, 12:04 p.m.