Formative

causal estimation made simple (but not easy)

$pip install formative-ds
example.py
from formative import DAG

dag = DAG()
dag.assume("proximity").causes("education")
dag.assume("ability").causes("education", "income")
dag.assume("education").causes("income")

result = IV2SLS(
    dag,
    treatment="education",
    outcome="income",
    instrument="proximity"
).fit(df)

print(result.summary())

Find the right method

Answer a few questions to find the right approach for measuring cause and effect in your situation.

Methods

1

Can you decide who receives the intervention?

Do you have the ability to choose or control who gets the treatment?