Description Usage Arguments Author(s) Examples
Takes the residuals, and makes them exchangeable.
1 | resid.homogenise.lm(mod)
|
mod |
The model from which residuals must be homogenised. |
Robert Bagchi Maintainer: Robert Bagchi <robert.bagchi@uconn.edu>
1 2 3 4 5 6 7 8 9 10 11 12 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (mod)
{
resids <- resid(mod) * (weights(mod)^0.5)/(1 - hatvalues(mod))^0.5
mn.resids <- mean(resids)
resids <- resids - mn.resids
return(resids)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.