Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instrumental variables example #18

Closed
eb8680 opened this issue Oct 18, 2022 · 5 comments · Fixed by #555
Closed

Add instrumental variables example #18

eb8680 opened this issue Oct 18, 2022 · 5 comments · Fixed by #555
Assignees
Labels
examples good first issue Good for newcomers help wanted Extra attention is needed

Comments

@eb8680
Copy link
Contributor

eb8680 commented Oct 18, 2022

As in the other examples, the easiest way to approach this is probably to pick a single paper and reproduce its model and results.

Some candidate papers:

@eb8680 eb8680 added documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed examples and removed documentation Improvements or additions to documentation labels Oct 18, 2022
@qinqian
Copy link
Collaborator

qinqian commented Nov 5, 2022

@eb8680, one quick question, shall we use pyro or causal_pyro to implement this and #21 examples? Is the causal_pyro ready with some basic get-started cases to use?

@eb8680
Copy link
Contributor Author

eb8680 commented Nov 8, 2022

@qinqian you should be able to get started along the same lines as the other examples (e.g. slc.ipynb) by creating a new notebook with the following sections:

  1. a background section setting up an example problem and dataset taken from one of the papers above or a similar one
  2. a section with a Pyro program corresponding to the causal model from the paper
  3. a section with a causal query formulated as an expanded Pyro model
  4. a section where the query is evaluated using SVI and an autoguide, or another standard Pyro inference algorithm
  5. a section where the results of the query are visualized and found to reproduce the results from the source paper

If you get stuck with these at any point, feel free to put up a draft pull request and ask for help or feedback. The existing examples currently have steps 1-3 completed, and we're working on finishing steps 4-5 (e.g. #59).

@qinqian
Copy link
Collaborator

qinqian commented Nov 8, 2022

Thanks @eb8680!

@qinqian
Copy link
Collaborator

qinqian commented Sep 22, 2023

A relevant about the Mendelian randomization: https://www.nature.com/articles/s41467-023-41394-4.

@dimkab
Copy link
Contributor

dimkab commented Jul 15, 2024

Published version of the Deep IV paper:

J. Hartford, G. Lewis, K. Leyton-Brown, and M. Taddy, “Deep IV: A Flexible Approach for Counterfactual Prediction,” in Proceedings of the 34th International Conference on Machine Learning, PMLR, Jul. 2017, pp. 1414–1423. Available: https://proceedings.mlr.press/v70/hartford17a.html

@eb8680 eb8680 linked a pull request Aug 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants