Skip to content

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

Description

@AlexAndorra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions