DataCanvasIO / YLearn

YLearn, a pun of "learn why", is a python package for causal inference
https://ylearn.readthedocs.io
Apache License 2.0
391 stars 75 forks source link

How to use customed causal graph when calling Why.fit() ? #40

Closed FatQiang closed 1 year ago

FatQiang commented 1 year ago

This template is for miscellaneous issues not covered by the other issue categories.

lixfz commented 1 year ago

If the causal graph is known, please pass adjustment/covariate/instrument options when calling Why.fit

Lllllp93 commented 1 year ago

If the causal graph is known, please pass adjustment/covariate/instrument options when calling Why.fit

So is it means that YLearn doesn't support identifying the `instrument'/'covariate' variables automatically by a causal graph provided by the user?

lixfz commented 1 year ago

Why does not accept causal graph as fit's argument. But one can use ylearn CausalModel to identify adjustment/instrument from the known causal graph, see example_usages/test_model.ipynb for more details.