powered by
Bivariate local join count
local_jc_bv(x, z, nb, wt, nsim = 499)
a data.frame with two columns join_count and p_sim and number of rows equal to the length of arguments x, z, nb, and wt.
data.frame
join_count
p_sim
x
z
nb
wt
a binary variable either numeric or logical
a neighbors list object.
default st_weights(nb, style = "B"). A binary weights list as created by st_weights(nb, style = "B").
st_weights(nb, style = "B")
the number of conditional permutation simulations
x <- as.integer(guerry$infants > 23574) z <- as.integer(guerry$donations > 10973) nb <- st_contiguity(guerry) wt <- st_weights(nb, style = "B") local_jc_bv(x, z, nb, wt)
Run the code above in your browser using DataLab