
Wide-format analysis of the 2020-2022 detailed-incident dataset.
Source:R/arsau_analyze.R
morie_arsau_analyze_detailed_dataset.RdChains:
mrm_uof_force_concentrationonPOLICE_SERVICEmrm_uof_weapon_diversityonPOLICE_SERVICE x ASSIGNMENT_TYPEmrm_uof_yoy_changeonREPORTING_YEAR
Usage
morie_arsau_analyze_detailed_dataset(
year_range = "2020-2022",
language = "en",
data_dir = NULL
)References
Ontario Ministry of the Solicitor General, ARSAU 2020-2022 detailed_dataset technical notes.
Examples
# \donttest{
res <- try(morie_arsau_analyze_detailed_dataset(year_range = "2020-2022"))
if (!inherits(res, "try-error")) print(res)
#> ARSAU detailed_dataset analysis (2020-2022)
#> ===========================================
#> Call: morie_arsau_analyze_detailed_dataset(year_range=‘2020-2022’)
#>
#> Year/range 2020-2022
#> Kind detailed_dataset
#> Rows analysed 5
#> Columns analysed 167
#> Valid yes
#> Sub-analyses 4
#>
#> Warning: [force_concentration] Only 2 force(s); concentration statistics with n<10 categories are descriptive at best.
#> Warning: [assignment_x_force] Contingency table is degenerate (n=0 or single row/column).
#>
#> Ran 4 sub-analysis(es) over the ARSAU 'detailed_dataset' dataset for '2020-2022': force_concentration, assignment_x_force, yoy_change, data_quality. Each sub-result is available as `result$<name>` and the underlying data.frame as `result$data`.
# }