Description Usage Arguments References Examples
best subsets according to a specified criterion are identified without requiring the fitting of all of the possible subset regression models.
1 |
x |
matrix of predictors |
y |
response vector |
method |
best subsets according to this specified criterion. R2,R2adj,sse,cp,press,aic and sbc. |
num |
number of best subset model per number of predictor variable. |
Michael H. Kutner; Christopher J. Nachtsheim; John Neter; William Li. Applied Linear Statistical Models Fifth Edition.chapter 9
1 2 3 | ## page 363
library("leaps")
BestSub(SurgicalUnit[,1:8],SurgicalUnit[,10],method='r2',num=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.