Learn R Programming

PMmisc (version 0.1.2)

reg.linreg: Linear regression processor

Description

This function will take a data frame and the dependent variable and fit all possible combinations of models. The result will be a data frame of models and test statistics for all the models possible. The test statistics are current set and contain all the following: R-squared, Adjusted R-squared, Degree of freedom, Residual standard error, AIC, BIC, Durbin-Watson statistic.

Usage

reg.linreg(dataframe,dependent)

Arguments

dataframe

:a data frame, which includes the dependent variable

dependent

:dependent variable

Examples

Run this code
# NOT RUN {
reg.linreg(mtcars,"mpg")
# }

Run the code above in your browser using DataLab