causalgraphicalmodels icon indicating copy to clipboard operation
causalgraphicalmodels copied to clipboard

Is there a way to find instrumental variables in a DAG?

Open AlexAndorra opened this issue 5 years ago • 0 comments

Hi there, Thanks a lot for your work on this package -- this looks really useful and promising 👌

I was wondering if there is a way to find instrumental variables, if they are present in a DAG? Kind of like what the dagitty R package does with its function instrumentalVariables:

library(dagitty)
dagIV <- dagitty( "dag{ Q -> E <- U -> W <- E }" )
instrumentalVariables( dagIV , exposure="E" , outcome="W" )

Context: we are porting Statistical Rethinking 2 to python and PyMC3 and using your package to do what R. McElreath does with daggity.

Thanks a lot in advance for your help, and take care 🖖 Alex

AlexAndorra avatar Jun 02 '20 10:06 AlexAndorra