Aggregate per-record predictive-policing data to per-area
Source:R/fairness_predpol.R
morie_fairness_predpol_aggregate_areas.RdAggregate per-record predictive-policing data to per-area
Usage
morie_fairness_predpol_aggregate_areas(
area,
risk,
outcome,
group = NULL,
population = NULL
)Arguments
- area
Area identifier per record.
- risk
Predicted-risk score per record.
- outcome
Realised-outcome indicator/count per record.
- group
Optional protected attribute per record; the per-area majority becomes the area's label.
- population
Optional named numeric vector mapping area to population, or a per-record vector (taken as constant within an area). When supplied, outcome rate is per 10,000 inhabitants.