logLik.spmodel {spmodel} | R Documentation |
Extract log-likelihood
Description
Find the log-likelihood of a fitted model when estmethod
is "ml"
or "reml"
.
Usage
## S3 method for class 'splm'
logLik(object, ...)
## S3 method for class 'spautor'
logLik(object, ...)
## S3 method for class 'spglm'
logLik(object, ...)
## S3 method for class 'spgautor'
logLik(object, ...)
Arguments
object |
A fitted model object from |
... |
Other arguments. Not used (needed for generic consistency). |
Value
The log-likelihood.
Examples
spmod <- splm(z ~ water + tarp,
data = caribou,
spcov_type = "exponential", xcoord = x, ycoord = y
)
logLik(spmod)
[Package spmodel version 0.7.0 Index]