leverage {regr0}R Documentation

Get leverage values

Description

Extracts the leverage component of a fit object using the na.action component if available

Usage

leverage(fit)

Arguments

fit

an object containing a component fit$leverage and possibly a component fit$na.action

Value

The vector fit$leverage, possibly expanded by missing values if fit$na.action has class na.replace

Author(s)

Werner A. Stahel, ETH Zurich

See Also

influence

Examples

data(d.blast)
r.blast <-
  regr(log10(tremor)~location+log10(distance)+log10(charge), data=d.blast)
t.lev <- leverage(r.blast)
length(t.lev)
dim(d.blast) ## number of observations is 388
length(r.blast$leverage) ## 362
  ## only observations without missings occur in $leverage

[Package regr0 version 1.0-5 Index]