Import

The causalinf module provides the implementation of many causal inference methods. Each method is available as a causalinf submodule. To import a submodule, use:

from causalinf import <submodule name>

See Methods for the full list of submodules available. Here are some examples:

1
2
3
from causalinf import did # (1)!
from causalinf import gcm # (2)!
from causalinf import iv  # (3)!
  1. Load the Difference-in-Differences (DiD) module
  2. Load the Causal Graphical Models (GCM) module
  3. Load the Instrumental Variable (IV) module