CausalGraphModel.build_graphical_model#

classmethod CausalGraphModel.build_graphical_model(graph, treatment, outcome)[source]#

Create a CausalGraphModel from a string representation of a graph.

Parameters:
graphstr

A string representation of the graph (e.g., String in DOT format).

treatmentlist[str]

A list of treatment variable names.

outcomestr

The outcome variable name.

Returns:
CausalGraphModel

An instance of CausalGraphModel constructed from the given graph string.