best.subsets | R Documentation |
Adaptation of existing methods based on AIC/BIC.
best.subsets(model, nbest = 5, nvmax, digits, force.in = "NULL")
model |
object class |
nbest |
|
nvmax |
|
digits |
|
force.in |
|
F-based versions of built in subset method.
No return, only print.
Kristian Hovde Liland
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.