multiple_linear_regression: Implements linear regression with many predictors by hand

View source: R/linear_regression.R

multiple_linear_regressionR Documentation

Implements linear regression with many predictors by hand

Description

This function computes coefficients for multiple regression by hand. All columns of the provided data frame are used as predictors, except the one specified as a response.

Usage

multiple_linear_regression(dat, response, method = NULL)

Arguments

dat

A data frame

response

The name of a response variable in the data frame (unquoted)

method

The method used to compute the coefficients (NULL, "qr", "gradientdescent")

Details

No interaction terms are included.

Value

A data frame of coefficients


mknauss58/Lab-6-Group documentation built on May 22, 2022, 12:26 a.m.