View source: R/average_effects.R
APO_dml | R Documentation |
This function estimates the average potential outcomes for all treatment levels.
APO_dml(y, m_mat, w_mat, e_mat, cf_mat, norm = 2, cl = NULL)
y |
A numeric vector containing the outcome variable. |
m_mat |
n x T+1 matrix with fitted outcome values. |
w_mat |
Logical matrix of treatment indicators (n x T+1). For example created by |
e_mat |
n x T+1 matrix with propensity scores. |
cf_mat |
Logical matrix with k columns of indicators representing the different folds
(for example created by |
norm |
Controls normalization of IPW weights. |
cl |
If not NULL, vector with cluster variables. |
Returns an APO_dml
object:
results |
Point estimate and standard error of APOs. |
gamma |
n x T+1 matrix containing the APO DR scores. |
y |
Vector of outcomes used in estimation. |
m_mat |
Matrix of outcome predictions used in estimation. |
w_mat |
Matrix of treatment indicators (n x T+1) used in estimation. |
e_mat |
Matrix of propensity score used in estimation. |
cf_mat |
Matrix with k columns of indicators representing the different folds used in estimation. |
cl |
Cluster variable if specified. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.