| rloo.lm {api2lm} | R Documentation | 
Compute leave-one-out residuals for 'lm' objects.
Description
rloo.lm computes the leave-one-out residuals of
the lm object stored in model. 
rjackknife.lm and rdeleted.lm are aliases
for rloo.lm.
Usage
## S3 method for class 'lm'
rloo(
  model,
  infl = stats::lm.influence(model, do.coef = FALSE),
  res = infl$wt.res,
  ...
)
## S3 method for class 'lm'
rdeleted(
  model,
  infl = stats::lm.influence(model, do.coef = FALSE),
  res = infl$wt.res,
  ...
)
## S3 method for class 'lm'
rjackknife(
  model,
  infl = stats::lm.influence(model, do.coef = FALSE),
  res = infl$wt.res,
  ...
)
Arguments
model | 
 a fitted model object from the   | 
infl | 
 influence structure as returned by   | 
res | 
 (possibly weighted) residuals, with proper default.  | 
... | 
 Currently unimplemented  | 
Details
Let \hat{\epsilon}_i denote the residual of the
ith observation and h_i denote the leverage
value of the ith observation The leave-one-out residual for observation i is
computed as
l_i = \frac{\hat{\epsilon}_i}{1-h_i}.
Author(s)
Joshua French
Examples
lmod <- lm(Girth ~ Height, data = trees)
rloo(lmod)
[Package api2lm version 0.2 Index]