varmlm | R Documentation |
Computes the unbiased estimate for the variance of the residuals of a model.
## S3 method for class 'mlm'
var(x,...)
## S3 method for class 'lm'
var(x,...)
x |
a linear model object |
... |
Unused, for generic purposes only. |
The difference of this command to var(resid(X))
is that this
command correctly adjusts for the degrees of freedom of the model.
var.lm |
returns a scalar giving the estimated variance of the residuals |
var.mlm |
returns a the estimated variance covariance matrix of the residuals |
K.Gerald v.d. Boogaart http://www.stat.boogaart.de, Raimon Tolosana-Delgado
vcov
data(Orange)
var(lm(circumference~age,data=Orange))
var(lm(cbind(circumference,age)~age,data=Orange))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.