localInfluence.glm | R Documentation |
Computes some measures and, optionally, display graphs of them to perform influence analysis based on the approaches described by Cook (1986).
## S3 method for class 'glm'
localInfluence(
object,
type = c("total", "local"),
perturbation = c("case-weight", "response", "covariate"),
covariate,
coefs,
plot.it = FALSE,
identify,
...
)
object |
an object of class glm. |
type |
an (optional) character string indicating the type of approach to study the
local influence. The options are: the absolute value of the elements of the eigenvector which corresponds to the maximum absolute eigenvalue ("local"); and the absolute value of the elements of the main diagonal ("total"). As default, |
perturbation |
an (optional) character string indicating the perturbation scheme
to apply. The options are: case weight perturbation of observations ("case-weight"); perturbation of covariates ("covariate"); and perturbation of response ("response"). As default, |
covariate |
an character string which (partially) match with the names of one of
the parameters in the linear predictor. This is only appropriate if |
coefs |
an (optional) character string which (partially) match with the names of some of the parameters in the linear predictor. |
plot.it |
an (optional) logical indicating if the plot of the measures of local
influence is required or just the data matrix in which that plot is based. By default,
|
identify |
an (optional) integer indicating the number of observations to identify
on the plot of the measures of local influence. This is only appropriate if
|
... |
further arguments passed to or from other methods. If |
A matrix as many rows as observations in the sample and one column with the values of the measures of local influence.
Cook D. (1986) Assessment of Local Influence. Journal of the Royal Statistical Society: Series B (Methodological) 48, 133-155.
Thomas W., Cook D. (1989) Assessing Influence on Regression Coefficients in Generalized Linear Models. Biometrika 76, 741-749.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.