Closed IyarLin closed 5 years ago
Hi,
Your graph is not a DAG -- it contains a cycle. Adjustment sets are not defined for cyclic models. Accordingly, dagitty returns no adjustment set (this is different from an empy set!)
I believe therefore that dagitty works as expected on this example.
Best regards Johannes
Great catch. Thanks!
Hi, I'm using the development version: '0.2.3' I've built the following DAG:
I know that in order to estimate the causal effect of cong on churn I need to condition on {comp, demo}. I've verified that in simulation as well.
Running the following command:
print(adjustmentSets(g))
Yield an empty set.
I've tried removing the betas or move the exposure/outcome enumeration to the function itself to no avail. It seems that only if I reduce the model a bit e.g.:
I get the right conditioning set ({comp}) by running
print(adjustmentSets(g))
See attached md file too try.docx