multiSLM: multiSLM

Description Usage Arguments Details Value Author(s) See Also

View source: R/multiSLM.R

Description

multiSLM Performs simple linear regression on multiple variables.

Usage

1
multiSLM(x, vars, target)

Arguments

x

Dataframe to be summarized

vars

Character vector containing the names of the variables to analyse

target

Column name of target variable.

Details

Performs simple linear regression on multiple variables vis-a-vis the target variable and returns a list containing the models, the regression results and the statistics. The regression statisics for each variable are summarized in descending order of r squared.

Value

A list containing a list of model information by predictor and a dataframe summarizing regression statistics by predictor. The model information is comprised of a list containing the model object, the regression results, and the regression statistics.

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other Analysis Functions: assocMatrix


DataScienceSalon/analyzR documentation built on May 7, 2019, 7:40 a.m.