powered by
Test the spatial heterogeneity in data based on permutation.
spatial_hetero_test( x, coords, ..., resample = 5000, poly = 2, bw = 10, kernel = c("bisquared", "gaussian"), verbose = 0 )
A shgt object of permutation-test results with the following items:
shgt
vars
The names of variables.
t0
The value of the statistics (variance of density estimation) on original values.
t
The value of the same statistics on permuted values.
p
The p-value for each variable.
A matrix of data to be tested. Each column is a variable.
A matrix of coordinates.
Additional arguments.
The total times of resampling with replacement. Default to 5000.
The number of polynomial terms used by the polynomial estimator. Default to 2.
The adaptive bandwidth used by the polynomial estimator. Default to 10.
The kernel function used by the polynomial estimator.
The verbosity level. Default to 0.
data(multisampling.large) spatial_hetero_test(multisampling.large$beta, multisampling.large$coords)
Run the code above in your browser using DataLab