Skip to content

[question] multiple treatment variables and final model #141

Answered by MalteKurz
ieriii asked this question in Q&A
Discussion options

You must be logged in to vote

Some details on the multiple treatment case can be found in the user guide: https://docs.doubleml.org/stable/guide/sim_inf.html. This should then be applicable to your functional form. Note however, that it is not explicitly imposing the form Y = theta_1 * T1 + theta_2 * T2 + theta_3 * T3 + g(X) as you intended. The code to estimate joint confidence intervals for the effect of (T1, T2, T3) on Y as described in the user guide is given below:

import doubleml as dml
import numpy as np
from sklearn.base import clone
from sklearn.linear_model import LassoCV, LinearRegression

np.random.seed(1234)
n_obs = 1000
dim_x = 100
X = np.random.normal(size=(n_obs, dim_x))

theta = np.array([1., 1.5, 2.25]…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by MalteKurz
Comment options

You must be logged in to vote
1 reply
@MalteKurz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants