knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
## importing our package 
library(lab4)

Main tasks for the lab 4


Methods of linreg class

  1. print()
  2. summary()
  3. resid()
  4. coef()
  5. plot()
  6. pred()

Object creation and using dataset iris

# creating the object of linreg
linreg_mod <- linreg(Petal.Length~Sepal.Width+Sepal.Length, data=iris)

# call the print methond as follow
linreg_mod$print()


zahrajalilpour292/assignment4 documentation built on Oct. 10, 2020, 6:59 a.m.