cooks.distance.spmodel | R Documentation |
Compute the Cook's distance for each observation from a fitted model object.
## S3 method for class 'splm'
cooks.distance(model, ...)
## S3 method for class 'spautor'
cooks.distance(model, ...)
## S3 method for class 'spglm'
cooks.distance(model, ...)
## S3 method for class 'spgautor'
cooks.distance(model, ...)
model |
A fitted model object from |
... |
Other arguments. Not used (needed for generic consistency). |
Cook's distance measures the influence of an observation on a fitted model object. If an observation is influential, its omission from the data noticeably impacts parameter estimates. The larger the Cook's distance, the larger the influence.
A vector of Cook's distance values for each observation from the fitted model object.
augment.spmodel()
hatvalues.spmodel()
influence.spmodel()
residuals.spmodel()
spmod <- splm(z ~ water + tarp,
data = caribou,
spcov_type = "exponential", xcoord = x, ycoord = y
)
cooks.distance(spmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.