linreg: Perform linear regression with OLS

Description Usage Arguments Value Examples

View source: R/linreg.R

Description

Perform linear regression with OLS

Usage

1

Arguments

formula

An object of the class formula.

data

A data set of the class data.frame

Value

The function returns the results of the linear regression as an object of class "linreg".

Examples

1
linreg_obj <- linreg(Petal.Length~Species, datasets::iris)

hugkn566/Lab4HugoOtto documentation built on Oct. 20, 2020, 2:17 p.m.