influence.spmodel function

Regression diagnostics

Regression diagnostics

Provides basic quantities which are used in forming a wide variety of diagnostics for checking the quality of fitted model objects.

## S3 method for class 'splm' influence(model, ...) ## S3 method for class 'spautor' influence(model, ...) ## S3 method for class 'spglm' influence(model, ...) ## S3 method for class 'spgautor' influence(model, ...)

Arguments

  • model: A fitted model object from splm(), spautor(), spglm(), or spgautor().
  • ...: Other arguments. Not used (needed for generic consistency).

Returns

A tibble with residuals (.resid), leverage values (.hat), cook's distance (.cooksd), and standardized residuals (.std.resid).

Details

This function calls residuals.spmodel(), hatvalues.spmodel(), and cooks.distance.spmodel() and puts the results into a tibble. It is primarily used when calling augment.spmodel().

Examples

spmod <- splm(z ~ water + tarp, data = caribou, spcov_type = "exponential", xcoord = x, ycoord = y ) influence(spmod)

See Also

augment.spmodel() cooks.distance.spmodel() hatvalues.spmodel() residuals.spmodel()

  • Maintainer: Michael Dumelle
  • License: GPL-3
  • Last published: 2025-03-12