Join count ratio is the join counts, the number of times a category is surrounded by neighbors of the same category, over the total number of neighbors after converting each category to a dummy variable.
join_count_ratio(clusters, w)
Arguments
clusters: A cluster classification variable (categorical values from a dataframe or values returned from cluster functions)
w: An instance of Weight class
Returns
A data.frame with names "Cluster", "N", "Neighbors", "Join Count", "Ratio"