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)

Arguments

raw_multipliers

The raw multipliers as given by the Home Office in their costs of crime report, included in this package for convenience as ho_multi.

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 1.0, which is used to fill unmatched weights.

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.

Value

Returns a dataframe indicating the multiplier for each police recorded crime offence.

Details

calculate_multipliers proceeds

  1. Filters police recorded crime to 2015/16 data, as the raw multipliers refer to this period

  2. Merges raw multipliers to police_recorded_crime

  3. Fills na withfillna

  4. Returns multiplier by police recorded crime offence