best.subsets {mixlm} | R Documentation |
F-test based best subset selection.
Description
Adaptation of existing methods based on AIC/BIC.
Usage
best.subsets(model, nbest = 5, nvmax, digits, force.in = "NULL")
Arguments
model |
object class |
nbest |
|
nvmax |
|
digits |
|
force.in |
|
Details
F-based versions of built in subset method.
Value
No return, only print.
Author(s)
Kristian Hovde Liland
Examples
data <- data.frame(y = rnorm(8),
x = factor(c('a','a','a','a','b','b','b','b')),
z = factor(c('a','a','b','b','a','a','b','b')))
mod <- lm(y ~ x + z, data=data)
best.subsets(mod)
[Package mixlm version 1.3.0 Index]