Computes the full suite of effect metrics comparing two scenarios that differ only in the allocation policy. Returns deltas on the event rate and the Compliance Index, Cohen's d, risk differences and an auto-generated narrative suitable for pasting into a report.
Value
An S3 object of class dynasimR_policy with slots
delta_event, compliance_comparison, effect_sizes,
wilcoxon_tests, narrative, and params.
Details
No hardcoded defaults are used - you must supply both scenario
IDs explicitly, so that the same function works for Profile A
(e.g. "A-S08" vs. "A-S07") and Profile B (e.g. "B-S19" vs.
"B-S00").
Examples
if (FALSE) { # \dontrun{
sim <- load_example_data()
pol <- policy_effect(sim,
policy_a_scenario = "A-S08", policy_b_scenario = "A-S07")
print(pol)
cat(pol$narrative)
} # }