local_joincount: Local Join Count statistics

Description Usage Arguments Value Examples

View source: R/lisa.R

Description

The function to apply local Join Count statistics

Usage

1
2
3
4
5
6
7
8
local_joincount(
  w,
  data,
  permutations = 999,
  significance_cutoff = 0.05,
  cpu_threads = 6,
  seed = 123456789
)

Arguments

w

An instance of Weight object

data

A numeric array of selected variable

permutations

The number of permutations for the LISA computation

significance_cutoff

A cutoff value for significance p-values to filter not-significant clusters

cpu_threads

The number of cpu threads used for parallel LISA computation

seed

The seed for random number generator

Value

lisa_obj An instance of LISA (LocalSpatialAutocorrelation) object

Examples

1
2
3
4
5
6
7
8
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
queen_w <- queen_weights(guerry)
guerry_df <- as.data.frame(guerry) # use as data.frame
top_crm <- guerry_df['TopCrm'][,1] # get 0/1 values of variable "top_crm"
lisa <- local_joincount(queen_w, top_crm)
clsts<- lisa_clusters(lisa)
clsts

lixun910/rgeoda documentation built on March 19, 2021, 3:49 p.m.