Apportions reoffences given by index offence to reoffences by reoffence group using the official reoffending statistics on reoffences by index offence group and reoffence group.

apportion_reoffences(reoffences, proven_reoffences, date)

Arguments

reoffences

User provided data of reoffences by index_offence_group.

proven_reoffences

Official statistics for proven reoffences by index offence group and reoffence group as included in the package at proven_reoffending_statistics.

date

Date for year_ending columns, will select closest year_ending.

Value

Returns the expected number of reoffences by index offence group and reoffence group.

Details

apportion_reoffences proceeds

  1. Filter proven reoffences to closest year_ending

  2. Calculate reoffence proportions for each index offence group

  3. Multiply reoffences by reoffence group proportions