View source: R/allRegressions.R
all.possible.regressions | R Documentation |
This function runs a linear regression for all combinations of variables. It calculates a number of different comparative metrics
## S3 method for class 'possible.regressions'
all(dat, k)
dat |
matrix or dataframe containing all variables. The response variable must be named 'y' and the predictor variables as 'x1', 'x2', ... 'xk'. |
k |
number of predictor variables |
dataframe with a row for each model and columns with the model formula, df.residual, p, SSE, MSE, R2, R2.adj, AIC, AICc, and BIC.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.