Data Science, Machine Learning, Causal Inference, AI, Linear Programming.
X[:, 1] + X[:, 2] interaction_2 = X[:, 3] * X[:, 4] + X[:, 5] interaction_3 = X[:, 6] * X[:, 7] + X[:, 9] # Set treatment effect if interaction_num==1: tau = tau_weight * interaction_1 elif interaction_num==2: tau = tau_weight * interaction_2 elif interaction_num==3: tau = tau_weight *