Docstring for Causality#

class macrostat.causality.DocstringCausalityAnalyzer(model_class: Type[Model])[source]

Bases: CausalityAnalyzer

analyze()[source]

Analyze a model class and return dependency dictionary

build_adjacency_matrix()[source]

Build adjacency matrix from dependencies

The adjacency matrix maps scenarios, state variables, and parameters to each other. The rows represent the prior, scenario, parameters and state variables, i.e. the dependency section of the docstring. The columns represent the state variables, i.e. the sets section of the docstring.