## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## ---- eval=FALSE---------------------------------------------------------
# devtools::install_github("stasinak/AdvPro4")
## ------------------------------------------------------------------------
library(Linear.reg)
data(iris)
linreg_mod <- linreg$new(formula = Petal.Length~Species, data = iris)
linreg_mod$print()
## ------------------------------------------------------------------------
linreg_mod$print()
## ------------------------------------------------------------------------
linreg_mod$resid()
## ------------------------------------------------------------------------
linreg_mod$pred()
## ------------------------------------------------------------------------
linreg_mod$coef()
## ------------------------------------------------------------------------
linreg_mod$summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.