BRISC_neighbor {BRISC} | R Documentation |
Function for finding set of nearest neighbors for BRISC
Description
The function BRISC_neighbor
creates the set of nearest neighbors for a given set of coordinates, which can be used as an input
for "neighbor"
argument in BRISC_estimation
. This is especially useful for avoiding often computationally
intensive nearest neighbor finding scheme in case of multiple application of BRISC_estimation
on a fixed set of
coordinates.
Usage
BRISC_neighbor(coords, n.neighbors = 15, n_omp = 1,
order = "Sum_coords", search.type = "tree",
verbose = TRUE, ordering = NULL, tol = 12
)
Arguments
coords |
an |
n.neighbors |
number of neighbors used in the NNGP. Default value is 15. |
n_omp |
number of threads to be used, value can be more than 1 if source code is compiled with OpenMP support. Default is 1. |
order |
keyword that specifies the ordering scheme to be used in ordering the observations. Supported keywords are:
|
search.type |
keyword that specifies type of nearest neighbor search algorithm to be used. Supported keywords are:
|
verbose |
if |
ordering |
if not |
tol |
the input observation coordinates, response and the covariates are rounded to this many places after the decimal. The default value is 12. |
Value
A list containing information regarding nearest neighbors which can be used as an input
for "neighbor"
argument in BRISC_estimation
.
Author(s)
Arkajyoti Saha arkajyotisaha93@gmail.com,
Abhirup Datta abhidatta@jhu.edu
References
Saha, A., & Datta, A. (2018). BRISC: bootstrap for rapid inference on spatial covariances. Stat, e184, DOI: 10.1002/sta4.184.
Datta, A., S. Banerjee, A.O. Finley, and A.E. Gelfand. (2016) Hierarchical Nearest-Neighbor Gaussian process models for large geostatistical datasets. Journal of the American Statistical Association, 111:800-812.
Guinness, J. (2018) Permutation and Grouping Methods for
Sharpening Gaussian Process Approximations, Technometrics,
DOI: 10.1080/00401706.2018.1437476,
https://github.com/joeguinness/gp_reorder/tree/master/R .
Examples
set.seed(1)
n <- 1000
coords <- cbind(runif(n,0,1), runif(n,0,1))
ordering_result <- BRISC_order(coords)