View source: R/nb-match-test-impl.R
nmt_impl | R Documentation |
Implementation of Neighbor Match Test
nmt_impl(x, k, listw, nsim = 199, scale = TRUE, .method = "euclidian", .p = 2)
x |
a numeric vector or a list of numeric vectors of equal length. |
k |
the number of neighbors to identify in attribute space. Should be the same as number of neighbors provided in st_knn. |
nsim |
the number of simulations to run for calculating the simulated p-value. |
scale |
default |
.method |
default |
.p |
default 2. The power of Minkowski distance passed to the |
a data frame containing columns:
n_shared
nb_matches
knn_nb
probability
p_sim
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.