Description Usage Arguments Value
Use a separate regularized regression for each post period to fit E[Y(0)|X]
1 2 | fit_prog_reg(X, y, trt, alpha = 1, lambda = NULL, poly_order = 1,
type = "sep")
|
X |
Matrix of covariates/lagged outcomes |
y |
Matrix of post-period outcomes |
trt |
Vector of treatment indicator |
alpha |
Mixing between L1 and L2, default: 1 (LASSO) |
lambda |
Regularization hyperparameter, if null then CV |
poly_order |
Order of polynomial to fit, default 1 |
type |
How to fit outcome model(s)
|
y0hat Predicted outcome under control
params Regression parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.