resid.homogenise.lm: Homogenise residuals from an lm model to make them...

Description Usage Arguments Author(s) Examples

Description

Takes the residuals, and makes them exchangeable.

Usage

1

Arguments

mod

The model from which residuals must be homogenised.

Author(s)

Robert Bagchi Maintainer: Robert Bagchi <robert.bagchi@uconn.edu>

Examples

 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)
  }

robertbagchi/ReplicatedPointPatterns documentation built on May 27, 2019, 10:32 a.m.