all.possible.regressions: fit all possible regressions

View source: R/allRegressions.R

all.possible.regressionsR Documentation

fit all possible regressions

Description

This function runs a linear regression for all combinations of variables. It calculates a number of different comparative metrics

Usage

## S3 method for class 'possible.regressions'
all(dat, k)

Arguments

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

Value

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.


Sz-Tim/sevcheck documentation built on Feb. 1, 2024, 12:39 a.m.