linreg | R Documentation |
Runs a simple linear regression over a formula and data set
linreg(formula, data)
formula |
object of class |
data |
a data table or |
returns an object of class linreg
, which contains all the regression outputs and mimics a list
linreg(Petal.Length ~ Species, iris)
linreg(speed ~ dist, cars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.