This function uses the published reoffending statistics to apportion the number of reoffences by index offence group to the number of reoffences by reoffence group. This function is only necessary when you do not have the number of reoffences by reoffence group.

rebase_reoffences(user_data, target_date)

Arguments

user_data

user_data expects a dataframe or tibble of reoffending data with at least the columns year_ending, index_offence_group, and number_reoffences_by_index.

target_date

The date which you wish to rebase reoffences to.

Value

A tibble with number_reoffences by reoffence_group.

Details

This function validates the input data, filters by the target_date, calls apportion_reoffences, and assigns the target_date as the year_ending.