spatial.pred.lm.ps {PrevMap} | R Documentation |
Spatial predictions for the geostatistical Linear Gaussian model using plug-in of ML estimates
Description
This function performs spatial prediction, fixing the model parameters at the maximum likelihood estimates of a linear geostatistical model.
Usage
spatial.pred.lm.ps(
object,
grid.pred = NULL,
predictors = NULL,
predictors.intensity = NULL,
control.mcmc = NULL,
target = 3,
type = "marginal",
quantiles = NULL,
standard.errors = FALSE,
messages = TRUE,
return.samples = FALSE
)
Arguments
object |
an object of class "PrevMap" obtained as result of a call to |
grid.pred |
a matrix of prediction locations. Default is |
predictors |
a data frame of the values of the explanatory variables at each of the locations in |
predictors.intensity |
a data frame of the values of the explanatory variables at each of the locations in |
control.mcmc |
output from |
target |
an integeter indicating the predictive target: |
type |
a character indicating the type of spatial predictions for |
quantiles |
a vector of quantiles used to summarise the spatial predictions. |
standard.errors |
logical; if |
messages |
logical; if |
return.samples |
logical; if |
Value
A "pred.PrevMap.ps" object list with the following components: response
(if target=1
or target=3
) and intensity
(if target=2
pr target=3
).
grid.pred
prediction locations.
Each of the components intensity
and response
is a list with the following components:
predictions
: a vector of the predictive mean for the corresponding target.
standard.errors
: a vector of prediction standard errors (if standard.errors=TRUE
).
quantiles
: a matrix of quantiles of the resulting predictions with each column corresponding to a quantile specified through the argument quantiles
.
samples
: a matrix corresponding to the predictive samples of the predictive target (only if return.samples=TRUE
), with each row corresponding to a samples and column to a prediction location.
In the case of a model with a mix of preferential and non-preferential data, if target=1
or target=3
, each of the above components will be a list with two components,
namely preferential
and non.preferential
, associated with response
.
Author(s)
Emanuele Giorgi e.giorgi@lancaster.ac.uk