Skip to contents

For each TPS category, computes per-HOOD_158 counts, z-standardises across neighbourhoods, and sums (or weight-and-sums) the z-scores to yield a single composite per neighbourhood. Positive composite = neighbourhood with elevated incidence across many crime types; near-zero = average; negative = below-average exposure.

Usage

morie_tps_composite_index(dfs, categories = NULL, weights = NULL, top_n = 25L)

Arguments

dfs

Named list of TPS data.frames keyed by category.

categories

Optional character vector restricting categories.

weights

Optional named numeric vector of per-category weights; defaults to 1.0 for every loaded category.

top_n

How many top/bottom neighbourhoods to surface in the tables (default 25L).

Value

A morie_tps_result named list.