This is a method for logLik
for fitted spatial logistic
regression models (objects of class "slrm"
, usually obtained
from the function slrm
). It computes the log-likelihood
of a fitted spatial logistic regression model.
If adjust=FALSE
, the loglikelihood is computed
using the standard formula for the loglikelihood of a
logistic regression model for a finite set of (pixel) observations.
If adjust=TRUE
then the loglikelihood is adjusted so that it
is approximately comparable with the likelihood of a point process
in continuous space, by subtracting the value
\(n \log(a)\)
where \(n\) is the number of points in the original point pattern
dataset, and \(a\) is the area of one pixel.