## ---- include = FALSE----------------------------------------------------
library(ggplot2)
library(methods)
library(lib4af)
data(iris)
## ---- warning=FALSE, message=FALSE, echo=FALSE---------------------------
mod_object <- linreg$new(Petal.Length~Species, data = iris)
mod_object$print()
## ---- warning=FALSE, message=FALSE, echo=FALSE---------------------------
mod_object$plot()
## ---- warning=FALSE, message=FALSE, echo=FALSE---------------------------
head(mod_object$resid())
## ---- warning=FALSE, message=FALSE, echo=FALSE---------------------------
head(mod_object$pred())
## ---- warning=FALSE, message=FALSE, echo=FALSE---------------------------
mod_object$coef()
## ---- warning=FALSE, message=FALSE, echo=FALSE---------------------------
mod_object$summary()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.