spatial_hetero_test_data {hgwrr} | R Documentation |
Test the spatial heterogeneity in data based on permutation.
Description
Test the spatial heterogeneity in data based on permutation.
Usage
spatial_hetero_test_data(
x,
coords,
...,
resample = 5000,
poly = 2,
bw = 10,
kernel = c("bisquared", "gaussian"),
verbose = 0
)
Arguments
x |
A matrix of data to be tested. Each column is a variable. |
coords |
A matrix of coordinates. |
... |
Additional arguments. |
resample |
The total times of resampling with replacement. Default to 5000. |
poly |
The number of polynomial terms used by the polynomial estimator. Default to 2. |
bw |
The adaptive bandwidth used by the polynomial estimator. Default to 10. |
kernel |
The kernel function used by the polynomial estimator. |
verbose |
The verbosity level. Default to 0. |
Value
A spahetbootres
object of permutation-test results with the following items:
vars
The names of variables.
t0
The value of the statistics on original values.
t
The value of the same statistics on permuted values.
p
The p-value for each variable.
Currently, variance is used as the statistics.
[Package hgwrr version 0.6-1 Index]