deviance.spmodel function

Fitted model deviance

Fitted model deviance

Returns the deviance of a fitted model object.

## S3 method for class 'splm' deviance(object, ...) ## S3 method for class 'spautor' deviance(object, ...) ## S3 method for class 'spglm' deviance(object, ...) ## S3 method for class 'spgautor' deviance(object, ...)

Arguments

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

Returns

The deviance.

Details

For objects estimated using "ml" or "reml", the deviance is twice the difference in log-likelihoods between the saturated (perfect-fit) model and the fitted model.

Examples

spmod <- splm(z ~ water + tarp, data = caribou, spcov_type = "exponential", xcoord = x, ycoord = y ) deviance(spmod)
  • Maintainer: Michael Dumelle
  • License: GPL-3
  • Last published: 2025-03-12