Skip to contents

Calls every morie_otis_* churn callable on its respective input data.frame and returns a named list of results. Each input is independent: pass NULL (or omit) to skip a metric. If out_dir is supplied, each result is also serialised to disk.

Usage

morie_otis_churn_analyze_all(
  b01 = NULL,
  b02 = NULL,
  b09 = NULL,
  a01 = NULL,
  out_dir = NULL
)

Arguments

b01, b02, b09, a01

Input data.frames (any may be NULL).

out_dir

Optional output directory.

Value

Named list of morie_otis_result.

Details

CRAN-safe: with out_dir = NULL no files are written.

Examples

b01 <- morie_synth_otis("b01", n = 80L, seed = 21L)
b02 <- morie_synth_otis("b01", n = 80L, seed = 22L)
res <- try(morie_otis_churn_analyze_all(b01 = b01, b02 = b02))
if (!inherits(res, "try-error")) names(res)
#> [1] "within_year_placement_count"  "within_year_region_diversity"
#> [3] "mortification_cooccurrence"   "disciplinary_medical_overlap"
#> [5] "path_complexity_gini"         "region_alert_state_richness" 
#> [7] "regC_demog_contingency"       "irr_glmm_vm"                 
#> [9] "embedding_distribution"