Description Usage Arguments Details Value See Also Examples
Matrix interface to all-variable-subsets selection in ordinary linear regression.
1 2 |
formula |
|
y |
|
intercept |
|
... |
forwarded to
|
This is a utility interface. Use the standard formula interface wherever possible.
"lmSubsets"
—an all-subsets regression
lmSubsets()
for the S3 generic
lmSubsets.default()
for the
standard formula interface
1 2 3 4 5 6 | data("AirPollution", package = "lmSubsets")
x <- as.matrix(AirPollution)
lm_mat <- lmSubsets(x, y = "mortality")
lm_mat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.