thresholdCI | R Documentation |
Given a point pattern and a spatial covariate that has some predictive value for the point pattern, compute a confidence interval for the optimal value of the threshold that should be used to convert the covariate to a binary predictor.
thresholdCI(X, Z, confidence = 0.95, nsim = 1000, parametric = FALSE)
X |
Point pattern (object of class |
Z |
Spatial covariate with numerical values.
Either a pixel image (object of class |
confidence |
Confidence level. A number between 0 and 1. |
nsim |
Number of bootstrap simulations to perform. |
parametric |
Logical value specifying whether to use the parametric bootstrap. |
The spatial covariate Z
is assumed to have some utility as a
predictor of the point pattern X
.
This code computes a bootstrap confidence interval
for the best threshold value z
for converting the
numerical predictor to a binary predictor, for use in
techniques such as Weights of Evidence.
A matrix containing upper and lower limits for the
threshold z
and the corresponding upper and lower limits for
the fraction of area of the study region.
.
Baddeley, A., Brown, W., Milne, R.K., Nair, G., Rakshit, S., Lawrence, T., Phatak, A. and Fu, S.C. (2021) Optimal thresholding of predictors in mineral prospectivity analysis. Natural Resources Research 30 923–969.
thresholdSelect
gold <- rescale(murchison$gold, 1000, "km")
faults <- rescale(murchison$faults, 1000, "km")
distfault <- distfun(faults)
Nsim <- if(interactive()) 250 else 25
thresholdCI(gold, distfault, nsim=Nsim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.