CausalGraphModel#
- class pymc_marketing.mmm.causal.CausalGraphModel(causal_model, treatment, outcome)[source]#
Represent a causal model based on a Directed Acyclic Graph (DAG).
Provides methods to analyze causal relationships and determine the minimal adjustment set for backdoor adjustment between treatment and outcome variables.
- Parameters:
References
[1]Methods
CausalGraphModel.__init__
(causal_model, ...)Create a CausalGraphModel from a string representation of a graph.
Compute minimal adjustment sets and handle warnings.
Find all backdoor paths between the combined treatment and outcome variables.
Compute the minimal adjustment set required for backdoor adjustment across all treatments.