fitted.slrm | R Documentation |
Given a fitted Spatial Logistic Regression model, this function computes the fitted probabilities for each pixel, or the fitted probabilities at each original data point.
## S3 method for class 'slrm'
fitted(object, ..., type="probabilities",
dataonly=FALSE, leaveoneout=FALSE)
object |
a fitted spatial logistic regression model.
An object of class |
... |
Ignored. |
type |
Character string (partially) matching one of
|
dataonly |
Logical. If |
leaveoneout |
Logical value
specifying whether to perform a leave-one-out calculation
when |
This is a method for the generic function
fitted
for spatial logistic regression models
(objects of class "slrm"
, usually obtained
from the function slrm
).
By default, the algorithm computes the fitted probabilities of the presence of a random point in each pixel, and returns them as an image.
If dataonly=TRUE
, the algorithm computes the fitted
presence probabilities only at the locations of the original data points.
A pixel image (object of class "im"
) containing the
fitted probability for each pixel,
or a numeric vector containing the fitted probability at each data point.
and \rolf.
slrm
,
fitted
X <- rpoispp(42)
fit <- slrm(X ~ x+y)
plot(fitted(fit))
fitted(fit, dataonly=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.