deviance.spmodel | R Documentation |
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, ...)
object |
A fitted model object from |
... |
Other arguments. Not used (needed for generic consistency). |
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.
The deviance.
spmod <- splm(z ~ water + tarp,
data = caribou,
spcov_type = "exponential", xcoord = x, ycoord = y
)
deviance(spmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.