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

Description of Function

This function takes a given formula with independent and dependent variables as well as a dataset and creates a linear regression model. The function returns an object of an RC class. Different methods are implemented for this object in the RC objected oriented system and are detailed below.

Methods availble in this function

How to use function:

  1. load data *example: load(iris)
  2. set object to function, including the formula wanting to be used and the data *example: lin <- linreg(Petal.Length~Species, iris)
  3. implement chosen method by subsetting examples: lin$print() lin$plot() lin$summary()


zoepatton/Lab4LinearRegression documentation built on Jan. 1, 2021, 1:54 p.m.