You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the usecase mentioned in DoubleML Impact of 401k. In DoubleML, they arrived at a conclusion saying that that participation on the pension scheme has a significant positive effect on financial assets. I also got similar results mentioned by them.
But when i tried to reproduce the same example using EconML, i get a negative treatment effect
from doubleml.datasets import fetch_401K
data = fetch_401K(return_type='DataFrame')
X = data[['age', 'p401', 'educ', 'fsize', 'marr','twoearn', 'db', 'pira', 'hown']].values
Y = data['net_tfa'].values
T = data['e401'].values
X_train, X_test, y_train, y_test, T_train, T_test = train_test_split(X, Y, T, test_size=0.2, random_state=42)
est_401 = CausalForestDML(model_y=RandomForestRegressor(),
model_t=RandomForestClassifier(min_samples_leaf=10),
discrete_treatment=True, cv=3
)
est_401.fit(y_train, T_train, X=X_train, W=None, cache_values=True)
print(est_401.ate(X, T0=0, T1=1))
print(est_401.ate_interval(X,T0=0, T1=1))
@ellpri I'm glad you were able to resolve it - out of curiosity is there anything about our API that made it confusing that we could change to prevent this kind of issue in the future?
I tried the usecase mentioned in DoubleML Impact of 401k. In DoubleML, they arrived at a conclusion saying that that participation on the pension scheme has a significant positive effect on financial assets. I also got similar results mentioned by them.
But when i tried to reproduce the same example using EconML, i get a negative treatment effect
Output:
-3561.8794269648424
(-55233.03792924924, 48109.27907531955)
I also tried DML, NonParamDML apart from CausalForestDML but got same negative results. Please could anyone point out what am i doing wrong here?
The text was updated successfully, but these errors were encountered: