knitr::opts_chunk$set(echo = TRUE)
data(iris) library(linalg)
This package contains functionality for multiple linear regression ans is written using RC Object Oriented System in R.
The package contains the following functionalities:
{r res}
res <- linreg$new(Petal.Length~Species, data = iris)
{r print,message=FALSE, warning=FALSE}
res$print()
Example:
{r plot, echo=FALSE,message=FALSE, warning=FALSE} res$plot()
{r resid,message=FALSE, warning=FALSE}
res$resid()
{r pred,message=FALSE, warning=FALSE}
res$pred()
The coef function returns the coefficients as a named vector
{r coef,message=FALSE, warning=FALSE}
res$coef()
The summary function display the summary of applied regression
{r summary,message=FALSE, warning=FALSE}
res$summary()
A test case "print" has been commented out. The output of the print function is fine but test always fails. Will incorporate it later after discussing with the teacher.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.