## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(echo = TRUE)
## ----iris, include=FALSE-------------------------------------------------
data(iris)
library(linalg)
## ----res-----------------------------------------------------------------
res <- linreg$new(Petal.Length~Species, data = iris)
## ----print,message=FALSE, warning=FALSE----------------------------------
res$print()
## ----plot, echo=FALSE,message=FALSE, warning=FALSE-----------------------
res$plot()
## ----resid,message=FALSE, warning=FALSE----------------------------------
res$resid()
## ----pred,message=FALSE, warning=FALSE-----------------------------------
res$pred()
## ----coef,message=FALSE, warning=FALSE-----------------------------------
res$coef()
## ----summary,message=FALSE, warning=FALSE--------------------------------
res$summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.