Description Usage Arguments Value
Fit a seq2seq model with a feedforward net to fit E[Y(0)|X]
1 2 | fit_prog_seq2seq(X, y, trt, layers = list(c(50, "relu"), c(5, "relu")),
epochs = 500, patience = 5, val_split = 0.2, verbose = F)
|
X |
Matrix of covariates/lagged outcomes |
y |
Matrix of post-period outcomes |
trt |
Vector of treatment indicator |
layers |
List of (n_hidden_units, activation function) pairs to define layers |
epochs |
Number of epochs for training |
patience |
Number of epochs to wait before early stopping |
val_split |
Proportion of control units to use for validation |
verbose |
Whether to print training progress |
y0hat Predicted outcome under control
params Model parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.