Fit a linear regression model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | linmod(x, ...)
## Default S3 method:
linmod(x, y, ...)
{Andi Sardina}
{
data(cats, package="MASS")
mod1 <- linmod(Hwt~Bwt*Sex, data=cats)
mod1summary(mod1)
}
{
linmod(x, ...)
## Default S3 method:
linmod(x, y, ...)
## S3 method for class 'linmod'
print(x, ...)
## S3 method for class 'linmod'
summary(object, ...)
}
{
\item{x}{ a numeric design matrix for the model. }
\item{y}{ a numeric vector of responses. }
\item{data}{ an optional data frame containing the variables in the model. }
\item{object}{ an object of class "linmod", i.e., a fitted model. }
\item{...}{ not used. }
}
{regression}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.