Skip to contents

Wires together morie_otis_analyze_a01 (causal IRM-DML) with the Toronto Police Service / StatsCan CSI context. The R port requires the morie causal pipeline and TPS-CSI helpers to be loaded; otherwise returns a "not yet ported" stub.

Usage

morie_otis_analyze_a01_with_csi_context(
  data = NULL,
  variant = "total",
  rebase_to_year = 2023L,
  out_dir = NULL
)

Arguments

data

Optional a01 data.frame.

variant

CSI variant: "total" or "violent".

rebase_to_year

Anchor year for the CSI index column (default 2023). Use NULL to skip rebasing.

out_dir

Optional output directory.

Value

morie_otis_analysis_result.

Examples

if (FALSE) { # \dontrun{
morie_otis_analyze_a01_with_csi_context(otis_a01)
} # }