Aggregate per-record predictive-policing data to one row per area
Source:R/frns_predpol.R
morie_predpol_aggregate_areas.RdAggregate per-record predictive-policing data to one row per area
Arguments
- area
Area identifier for each record.
- risk
Predicted risk score for each record.
- outcome
Realised-outcome indicator/count for each record.
- group
Optional protected attribute per record; the per-area majority value becomes that area's group label.
- population
Optional area population: a named numeric vector (
area -> population) or a per-record vector. When given, the outcome rate is per 10,000 inhabitants; otherwise it is the mean outcome per record.