[Feature Request]: Using different covariates

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale

Research direction

The issue names no files, tests, or entry points. Begin by locating how the project currently accepts covariates for outcome and treatment equations, then determine whether separate sets are supported and what tests or API changes would define completion.

Written by the indexing model from the issue text.

Description

enhancement new feature
Describe the feature you want to propose or implement

Hello, I’ve encountered a problem. The variable y is a firm-year indicator, and x is a region-year indicator. I want to control for region fixed effects and time fixed effects. However, if I use a nonlinear machine learning method such as random forests, the interaction between region and time may remove most of the information in x when predicting it, which is clearly unreasonable. Therefore, I’d like to ask whether it’s acceptable to use different covariates for the outcome equation and the treatment equation. Alternatively, do you have a more reasonable approach? I look forward to your response. Thank you!

Propose a possible solution or implementation

No response

Did you consider alternatives to the proposed solution. If yes, please describe

No response

Comments, context or references

No response

Dominant language
Python
Stars
800
Forks
133
Avg merge
1d 12h
Merged PRs (30d)
29

Getting set up

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.

More from DoubleML/doubleml-for-py

All issues in DoubleML/doubleml-for-py

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.