The univariate local join count statistic is used to identify clusters of rarely occurring binary variables. The binary variable of interest should occur less than half of the time.
chosen: a scalar character containing the level of fx that should be considered the observed value (1).
listw: a listw object containing binary weights created, for example, with nbwlistw(nb, style = "B")
alternative: default "greater". One of "less" or "greater".
nsim: the number of conditional permutation simulations
iseed: default NULL, used to set the seed; the output will only be reproducible if the count of CPU cores across which computation is distributed is the same
a data.frame with two columns BB and Pr() and number of rows equal to the length of x.
Details
The local join count statistic requires a binary weights list which can be generated with nb2listw(nb, style = "B"). Additionally, ensure that the binary variable of interest is rarely occurring in no more than half of observations.
P-values are estimated using a conditional permutation approach. This creates a reference distribution from which the observed statistic is compared. For more see Geoda Glossary.