map_unit_costs.Rd
Maps unit costs as produced by the Home Office in their Costs of Crime Report to offence groups used in the Ministry of Justice for reoffending statistics and estimates unit costs by expenditure category for offence groups not covered in the report.
map_unit_costs(ho_coc, police_recorded_crime, personal_commercial_crime, coc_mapping, crime_severity, fraud_prc, proxy_contrib, summary_cjs_costs, proven_offences, date = "2016-03-01")
ho_coc | The home office costs of crime as produced in their report. These
are included in the package as |
---|---|
police_recorded_crime | Official statistics on police recorded crime.
NOTE: Do NOT use |
personal_commercial_crime | From the Home Office report, estimates of the
levels of commercial (Commercial Victimisation Survey) and personal (Crime
Survey England & Wales) crime, see |
coc_mapping | A mapping between police recorded crime offences and the
bespoke cost of crime categories used by the Home Office, see |
crime_severity |
|
proxy_contrib | Assumed contribution by expenditure group towards the
unit costs of the offence group in question. See |
date | Date to which the other parameters refer (default is year ending 2016-03-01). |
Returns estimated unit costs by offence group and expenditure group.
map_unit_costs
proceeds
Filter police_recorded_crime
to closest year_ending
to date
.
Joins to coc_mapping
and counts number_offences
Joins to ho_coc
, the Home Office unit costs
Estimates personal / commercial crime splits for ambiguous cost of crime groups
Joins personal commercial crime splits with main table and estimates aggregate totals for costs of crime for offence groups
Merge police_recorded_crime
and crime_severity
.
Calculate weighted severity score for each offence_group
.
Search for closest proxy offence group in severity.
Copy costs by expenditure group for proxy costs.
Compare against proxy_contrib
to see which apply.