View source: R/joincount-bv-impl.R
| local_jc_bv | R Documentation |
Bivariate local join count
local_jc_bv(x, z, nb, wt, nsim = 499)
x |
a binary variable either numeric or logical |
z |
a binary variable either numeric or logical |
nb |
a neighbors list object. |
wt |
default |
nsim |
the number of conditional permutation simulations |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.