jtextor / dagitty

Graphical analysis of structural causal models / graphical causal models.
GNU General Public License v2.0
255 stars 47 forks source link

Front-door adjustment sets in the dagitty R package #68

Open behrman opened 1 year ago

behrman commented 1 year ago

@jtextor Now that @benibela has implemented JavaScript code for the linear-time calculation of front-door adjustment sets, can this functionality be made available in the dagitty R package?

jtextor commented 1 year ago

Hi, I will wait to incorporate this functionality until @benibela signals to me that this code is ready by doing a pull request.

behrman commented 1 year ago

I'm very happy to hear that you will incorporate front-door adjustment sets into the dagitty R package. I'm creating documentation with worked examples to help students learn how to use this package, and I would love to include an example of this new functionality. We'll wait for @benibela finish the code and submit a pull request.

jtextor commented 1 year ago

Thanks. You may also be interested to hear that I implemented causal odds ratio identification and selection variables in dagitty. This allows you to for example analyze case-control studies. This is already available at http://dagitty.net/experimental/dags.html. Check the example "Didelez et al, 2010" (from https://www.jstor.org/stable/41058953)