simple_linear_regression: Implements simple linear regression by hand

View source: R/linear_regression.R

simple_linear_regressionR Documentation

Implements simple linear regression by hand

Description

Implements simple linear regression by hand

Usage

simple_linear_regression(dat, response, explanatory, method = NULL)

Arguments

dat

A data frame

response

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

explanatory

The name of the explanatory variable in the data frame (unquoted)

method

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

Value

A data frame of coefficients


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