apportion_reoffences.Rd
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)
reoffences | User provided data of reoffences by |
---|---|
proven_reoffences | Official statistics for proven reoffences by index
offence group and reoffence group as included in the package at |
date | Date for year_ending columns, will select closest year_ending. |
Returns the expected number of reoffences by index offence group and reoffence group.
apportion_reoffences
proceeds
Filter proven reoffences to closest year_ending
Calculate reoffence proportions for each index offence group
Multiply reoffences by reoffence group proportions