ind.contrib: Individual contributions in regression

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ind.contrib.R

Description

Computes difference in regression parameters when each individual is dropped, expressed in proportion of the whole regression coefficients. The function deals with lm (including glm) and least.rect models.

Usage

1
ind.contrib(model, print.diff = FALSE, graph = TRUE, warning=25)

Arguments

model

model (of class "lm" or "least.rect").

print.diff

logical. If TRUE results are printed.

graph

logical. If TRUE results are returned in a graphical way.

warning

level of graphical warning.

Value

coefficients

coefficients of each computed regression.

coefficients.diff

difference in coefficients between each computed regression and the whole regression.

coefficients.prop

difference in coefficients expressed in proportion of the whole regression coefficients.

Author(s)

Maxime Herv<e9> <[email protected]>

See Also

lm.influence, least.rect

Examples

1
2
3
4
5
6
x <- 1:30
y <- 1:30+rnorm(30,0,4)
model1 <- lm(y~x)
model2 <- least.rect(y~x)
ind.contrib(model1)
ind.contrib(model2)

RVAideMemoire documentation built on May 14, 2018, 5:07 p.m.