knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(bis557)

Funtions

Linear Model

A function to fit the linear model. Take a formula, a data frame and a list of constasts for factor variables as input. The output is a list of estimated coefficients.

Gradient Descent

A function to implement gradient descent for ordinary least squares. Take a formula, a data frame and a list of constasts for factor variables and some default values as input. The output is a list of estimated coefficients.



lyran92/bis557 documentation built on Dec. 21, 2020, 10:03 p.m.