Given a fitted Spatial Logistic Regression model, this function computes the fitted probabilities for each pixel.
# S3 method for slrm
fitted(object, ...)
a fitted spatial logistic regression model.
An object of class "slrm"
.
Ignored.
A pixel image (object of class "im"
) containing the
fitted probability for each pixel.
This is a method for the generic function
fitted
for spatial logistic regression models
(objects of class "slrm"
, usually obtained
from the function slrm
).
The algorithm computes the fitted probabilities of the presence of a random point in each pixel.
# NOT RUN {
X <- rpoispp(42)
fit <- slrm(X ~ x+y)
plot(fitted(fit))
# }
Run the code above in your browser using DataLab