Skip to contents

Tests whether category A's per-neighbourhood count co-varies with category B's count in NEIGHBOURING neighbourhoods (spatial spillover). Builds a k-NN row-standardised spatial weights matrix from per-hood centroids derived from category A's WGS84 latitude/longitude. Reports Pearson r alongside as a non-spatial baseline.

Usage

morie_tps_bivariate_morans_i(dfs, cat_a, cat_b, k_neighbours = 5L)

Arguments

dfs

Named list of TPS data.frames keyed by category.

cat_a

Name of category A in dfs.

cat_b

Name of category B in dfs.

k_neighbours

Number of nearest neighbours per row in W (default 5L).

Value

A morie_tps_result named list.