jtextor / dagitty

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

DAGitty in python? #48

Closed elzurdo closed 3 years ago

elzurdo commented 3 years ago

Excuse the possible blasphemy, but is there any initiative to export code to other languages like python, or even create python modules?

In any case, I'm looking forward to brushing up on my R for the sake of using DAGitty!

AndrewC19 commented 3 years ago

It's a bit hacky, but you can use the rpy2 package to run R in python. I currently use this approach to do identification using dagitty and estimation using DoWhy.

jtextor commented 3 years ago

I'm fortunate enough to have @ankurankan, who created the pgmpy package, working as a PhD student in my group. He's currently adding some causal inference functions to pgmpy and we'll make the packages interoperable in the not too distant future.