Naming

Canonical Julia names avoid R brand strings in the public API. The repository file NAMING.md is the short source of truth; this page expands it for Documenter readers.

Effect families

Julia type / symbolR crumbleLiterature gloss
InterventionalMediation / :interventionaleffect="RI"Randomised intermediate / interventional TE, NDE, NIE
NaturalMediation / :naturaleffect="N"Natural direct and indirect effects
OrganicMediation / :organiceffect="O"Organic effects (Lok)
RecantingTwinMediation / :recanting_twineffect="RT"Recanting-twin / path-specific
ControlledDirect / :controlled_direct(related CDE APIs)Controlled direct effect at fixed mediator levels

Construct specs with the type, or pass a symbol through spec_from_identification(...; effect = :natural).

Intermediate confounders

JuliaElsewhere
mocIntermediate confounders; often Z in R tutorials
IdentificationResult.mocFilled by CausalDynamics when witnesses exist
MediationSpec.mocRequired for honest RI / RT estimation when present

Entry points

JuliaR / CT legacy
run_mediationPreferred typed entry
run_mediation_gridδ-grid DataFrame API ≈ crumble(...) grids
run_mediation_scalarBinary $d_0=0$ vs $d_1=1$
plan_mediation / spec_from_identificationCertificate merge (CT has plan_mtp)
decomposeTE / NDE / NIE (or path) extraction

CausalTargeted still exports soft-deprecated run_crumble_* façades that forward here. Prefer using CausalMediation in new scripts and book chunks.

Estimators

SymbolMeaning
:pluginNested-MC plug-in
:onestepPlugin + EIF / residual correction (default)
:tmleTargeting fluctuation

Not named after R package brands (:crumble is a soft-deprecated CT engine alias only).