This is a method for predict
for spatial logistic
regression models (objects of class "slrm"
, usually obtained
from the function slrm
).
The argument type
determines which quantity is computed.
If type="intensity"
), the value of the point process intensity
is computed at each pixel. If type="probabilities"
) the
probability of the presence of a random point in each pixel is
computed. If type="link"
, the value of the linear predictor is
computed at each pixel.
If newdata = NULL
(the default), the algorithm computes
fitted values of the model (based on the data that was originally used
to fit the model object
).
If newdata
is given, the algorithm computes predicted values
of the model, using the new values of the covariates provided by
newdata
. The argument newdata
should be a list;
names of entries in the list should correspond
to variables appearing in the model formula of the object
.
Each list entry may be a pixel image or a single numeric
value.