py-why / py-why/EconML

Effect Interval for DR Methods Not Possible When T0 is non-zero

Open
#813 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

I have 10 treatment levels 0,1,2,...,9. I wanted the confidence interval for treatment effects given a X value using the effect_interval function. I ran the code effect_interval(X=X[:1],T0=1,T1=2).
The above function is working fine for DML algorithms but while using DR algorithms it is throwing the following error:
AttributeError: Can only calculate inference of effects between a non-baseline treatment and the baseline treatment!
In the documentation effect_interval is meant to work for different base treatment levels as the user wants.
Another point is that, the above issue is not occurring while using the effect function.
So, how can I get this issue solved?

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 by reproducing the reported effect_interval(X=X[:1], T0=1, T1=2) call with a DR algorithm, then compare its behavior with the effect function and the documented effect_interval semantics. Done means effect_interval can return an interval for non-zero treatment levels without raising the baseline-treatment error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.