Skip to content

Mediation analysis: how to choose mediators? #249

@santboia

Description

@santboia

Hi,

I'm working on a model where there are several variables along the causal path from the treatment to the outcome (i.e., more than one variable is affected by the treatment and in turns affects the outcome).

I understand that the current version of DoWhy can calculate estimates for NDE and NIE with a single such mediator variable.

My issue is I could not find a way to set which one I'd like to consider. I could also not determine how the mediator is internally determined once I call my_model.identify_effect(estimand_type="nonparametric-nie")

Is there a plan to allow users more control on this? Perhaps allowing mediators_names to be passed as an optional keyword argument to .identify_effect()?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions