Implementation of Neighbor Match Test
nmt_impl(x, k, listw, nsim = 199, scale = TRUE, .method = "euclidian", .p = 2)
a data frame containing columns:
n_shared
nb_matches
knn_nb
probability
p_sim
a numeric vector or a list of numeric vectors of equal length.
the number of neighbors to identify in attribute space. Should be the same as number of neighbors provided in st_knn.
the number of simulations to run for calculating the simulated p-value.
default TRUE
. Whether x
should be scaled or not. Note that measures should be standardized.
default "euclidian"
. The distance measure passed to stats::dist()
.
default 2. The power of Minkowski distance passed to the p
argument in stats::dist()
.