calculate_multipliers.Rd
Calculates multipliers given the raw multipliers from the Home Office Costs of Crime publication and police recorded crime data, these are used to estimate the volume of crime in wider society.
calculate_multipliers(raw_multipliers, police_recorded_crime, fillna = 1)
raw_multipliers | The raw multipliers as given by the Home Office in
their costs of crime report, included in this package for convenience as
|
---|---|
police_recorded_crime | Not currently used within the function, we expect to produce alternative methods to generate weighted multipliers that better reflect the uplift from police recorded crime to wider crime. |
fillna | A floating point, default |
offence_mapping | Defaults to standard mapping as included in package, otherwise allows for user to input custom mapping dataframe. A reduced subset will only return weights for those included in the mapping dataframe. |
Returns a dataframe indicating the multiplier for each police recorded crime offence.
calculate_multipliers
proceeds
Filters police recorded crime to 2015/16 data, as the raw multipliers refer to this period
Merges raw multipliers to police_recorded_crime
Fills na withfillna
Returns multiplier by police recorded crime offence