spatial.pred.linear.MLE {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.linear.MLE(
object,
grid.pred,
predictors = NULL,
predictors.samples = NULL,
type = "marginal",
scale.predictions = c("logit", "prevalence", "odds"),
quantiles = c(0.025, 0.975),
n.sim.prev = 0,
standard.errors = FALSE,
thresholds = NULL,
scale.thresholds = NULL,
messages = TRUE,
include.nugget = FALSE
)
Arguments
object |
an object of class "PrevMap" obtained as result of a call to |
grid.pred |
a matrix of prediction locations. |
predictors |
a data frame of the values of the explanatory variables at each of the locations in |
predictors.samples |
a list of data frame objects. This argument is used to average over repeated simulations of the predictor variables in order to obtain an "average" map over the distribution of the explanatory variables in the model.
Each component of the list is a simulation. The number of simulations passed through |
type |
a character indicating the type of spatial predictions: |
scale.predictions |
a character vector of maximum length 3, indicating the required scale on which spatial prediction is carried out: "logit", "prevalence" and "odds". Default is |
quantiles |
a vector of quantiles used to summarise the spatial predictions. |
n.sim.prev |
number of simulation for non-linear predictive targets. Default is |
standard.errors |
logical; if |
thresholds |
a vector of exceedance thresholds; default is |
scale.thresholds |
a character value indicating the scale on which exceedance thresholds are provided; |
messages |
logical; if |
include.nugget |
logical; if |
Value
A "pred.PrevMap" object list with the following components: logit
; prevalence
; odds
; exceedance.prob
, corresponding to a matrix of the exceedance probabilities where each column corresponds to a specified value in thresholds
; grid.pred
prediction locations; samples
, corresponding to the predictive samples of the linear predictor (only if any(scale.predictions=="prevalence")
).
Each of the three components logit
, prevalence
and odds
is also a list with the following components:
predictions
: a vector of the predictive mean for the associated quantity (logit, odds or prevalence).
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
: If n.sim.prev > 0
, the function returns n.sim.prev
samples of the linear predictor at each of the prediction locations.
Author(s)
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Peter J. Diggle p.diggle@lancaster.ac.uk