Performs an isotropy test based on parametric bootstrap by comparing an isotropic model (H0) with an anisotropic model (H1). A user-chosen spatial correlation model is fitted to spatial data, and the test statistic is a likelihood ratio between H1 (with anisotropy estimated) and H0 (anisotropy fixed at ratio = 1 and angle = 0). The p-value is computed via parametric bootstrap.
GeoTestIsotropy(data, coordx,
start, fixed,
optimizer = "bobyqa",
model = "Gaussian",
corrmodel = "Matern",
lower = NULL, upper = NULL,
B = 1000,
likelihood = NULL,
type = NULL,
copula = NULL,
neighb = 5,
parallel = TRUE,
ncores = NULL,
progress = TRUE)An (invisible) list with components:
Observed LRT statistic.
Bootstrap p-value.
Estimated anisotropy ratio (> 1 indicates stretching along the principal axis).
Estimated anisotropy angle (radians/degrees according to GeoFit convention).
Correlation model used.
Marginal model used.
GeoFit object fitted under H0.
GeoFit object fitted under H1.
Vector of LRT values obtained on the valid bootstrap replications.
Numeric vector of observations (length n).
n x d matrix with the spatial coordinates of the sites (at least 2 columns for anisotropy analysis).
Named list with the parameters to be estimated; names must match those expected by CorrParam(corrmodel) and NuisParam(model).
Named list with the parameters kept fixed during estimation; together with start it must exactly cover the required set of parameters.
Optimization algorithm to be used in GeoFit (e.g., "bobyqa").
Marginal model for the data (e.g., "Gaussian").
Spatial correlation model (e.g., "Matern").
Named lists with lower/upper bounds for parameters in start only. If NULL, no extra bounds beyond defaults.
Number of parametric bootstrap replications (default 1000).
Type of (composite) likelihood to pass to GeoFit (e.g., "Marginal").
Composite-likelihood type (e.g., "Pairwise").
Copula object for simulation via GeoSimCopula; if NULL Gaussian simulation is used.
Number of neighbors for composite-likelihood estimation, where applicable.
If TRUE, bootstrap fits are distributed in parallel through future.
Number of cores to use in parallel; if NULL it is chosen automatically up to B or parallel::detectCores()-1.
If TRUE, show progress bars using progressr.
Moreno Bevilacqua moreno.bevilacqua89@gmail.com https://sites.google.com/view/moreno-bevilacqua/home
Víctor Morales Oñate victor.morales@uv.cl https://sites.google.com/site/moralesonatevictor/
Christian Caamaño-Carrillo chcaaman@ubiobio.cl https://www.researchgate.net/profile/Christian-Caamano
GeoTestIsotropy implements a likelihood ratio test (LRT) between:
H0: isotropic model with anisotropy parameters fixed at angle = 0, ratio = 1;
H1: anisotropic model with angle and ratio estimated.
The observed statistic is \(\mathrm{LRT}_{\text{obs}} = 2(\ell_1 - \ell_0)\), truncated at zero if negative.
The null distribution is approximated by simulating B datasets under H0 with parameters equal to the H0 fit, and recomputing the LRT.
The p-value is computed as \((1 + \#\{\mathrm{LRT}_b \ge \mathrm{LRT}_{\text{obs}}\}) / (1 + B_{\text{valid}})\).
The function includes robust checks on parameter names, bounds, simulation method choice (Cholesky vs TB), and parallelization.
GeoFit, GeoSim, GeoSimapprox, GeoVarestbootstrap