py-why / py-why/EconML

Include moderators that are no confounders

Open
#849 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
4.8k
Forks
827
PR merge metrics
No merged PRs in 30d

Description

Hi!

Is it possible to include variables that only moderate but do not confound the relationship between T and Y?

Using the CausalForestDML, I would like to include an additional moderator to explain the heterogeneity of the treatment effect, but since it is also a mediator, I can't include it in X. I hope this makes sense.

Any thoughts and workarounds would be greatly appreciated. Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CausalForestDML entry point and review how it uses X to explain treatment-effect heterogeneity. Determine whether a moderator that is also a mediator can be supported without treating it as a confounder; done would require a decided API approach or a documented workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
machine-learning
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.