calculate_wider_reoffences.Rd
Calculates wider reoffences by assuming that reoffences
/
proven_offences
is equal to the proportion of police recorded
offending which is reoffending.
calculate_wider_reoffences
proceeds
Filters datasets to closest year_ending
to date
Merges proven offences, multipliers and police recorded crime
Summarises by offence group
Calculates wider offences
Merges with reoffences
Calculates reoffence ratio for each offence group
Multiplies reoffence ratio by wider offences to get wider reoffences
calculate_wider_reoffences(reoffences, proven_offences, police_recorded_crime, multipliers, date)
reoffences | Number of reoffences by reoffence group |
---|---|
proven_offences | Number of proven offences by police recorded crime offence |
police_recorded_crime | A tidied, cleaned version of
|
multipliers | Multipliers for each police recorded crime offence as
would be produced by |
date | Date for year_ending columns, will select closest year_ending. |
offence_mapping | Defaults to standard mapping as included in package,
otherwise allows for user to input custom mapping dataframe, see |
Returns estimated number of wider reoffences by reoffence group.