deviance.spmodel {spmodel} | R Documentation |
Fitted model deviance
Description
Returns the deviance of a fitted model object.
Usage
## 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 |
... |
Other arguments. Not used (needed for generic consistency). |
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.
Value
The deviance.
Examples
spmod <- splm(z ~ water + tarp,
data = caribou,
spcov_type = "exponential", xcoord = x, ycoord = y
)
deviance(spmod)
[Package spmodel version 0.7.0 Index]