Comments (5)
When there is a categorical variable X1 in X, it is possible that there is a child node where those observations contain only one category, i.e. all values of the variable X1 are the same. In this case, how can we get pseudo-outcomes? The pseudo-outcomes is obtained through the inverse of Ap which may be singular. Isn't it?
from grf.
The X-values aren't used to compute the pseudo-outcomes in the leaf in the standard GRF formulation; rather, only the "outcomes" matter (e.g., W and Y for causal_forest
). The features X enter into the problem by determining which leaf an observation falls into.
from grf.
Thanks for you reply @swager! I understand in your causal_forest, pseudo-outcomes only have W and Y. But if we want to do the local linear regression, so our psi should be:
psi(Y_i)=Y_i-theta * X_i, (here theta is related to the query point x), shouldn't it? So when we calculate Ap, we need take derivative of psi w.r.t. theta, and the result will include feature X. Is there anything wrong in my understanding?
from grf.
We added the sufrep package, which contains a collection of methods for handling categorical variables, and a tutorial for how to use sufrep with grf.
from grf.
Thanks
from grf.
Related Issues (20)
- Problems with grf in R Notebooks HOT 3
- Outcome variable with highly right-skewed distribution with mass at zero HOT 1
- Do the causal_forest() and predict() functions technically fall under the umbrella of an "honest causal forest" or a "generalized random forest" ?
- object 'X' not found HOT 2
- Multiple instruments in instrumental_forest() + first stage results HOT 1
- Average treatment effect for lm forest HOT 1
- Question : Variance from quantile forest and multi_regression_forest HOT 1
- Overlap assumption and Calibration test HOT 1
- Typo X2 -> X1 in RATE doc example
- LATE implementation details HOT 2
- How to calculate the R2 of a local linear forest? HOT 2
- Add support for missing values on predictors features HOT 2
- ll_regression_forest slows down console in Rstudio HOT 2
- Getting negative values for test_calibration(tau.forest) HOT 1
- cross-fitted calibration test - Athey et.al. 2024 HOT 4
- Questions Regarding Causal Forest Variable Types and "test_calibration" Interpretation HOT 1
- Allow `Y.hat` input for `causal_survival_forest()`? HOT 4
- Variable importance () plot HOT 6
- Access to value of criterion for splits HOT 1
- best_linear_projection returns NaN values HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grf.