compute.MDiD | R Documentation |
Internal function for computing the actual value for MDiD
compute.MDiD( formla, xformla = NULL, t, tmin1, tname, data, panel = FALSE, idname = NULL, uniqueid = NULL, probs = seq(0.05, 0.95, 0.05) )
formla |
The formula y ~ d where y is the outcome and d is the treatment indicator (d should be binary), d should be equal to one in all time periods for individuals that are eventually treated |
xformla |
A optional one sided formula for additional covariates that will be adjusted for. E.g ~ age + education. Additional covariates can also be passed by name using the x paramater. |
t |
The 3rd time period in the sample. Treated individuals should be treated in this time period and untreated individuals should not be treated. The code attempts to enforce this condition, but it is good try to handle this outside the panel.qtet method. |
tmin1 |
The 2nd time period in the sample. This should be a pre-treatment period for all individuals in the sample. |
tname |
The name of the column containing the time periods |
data |
A data.frame containing all the variables used |
idname |
The individual (cross-sectional unit) id name |
probs |
A vector of values between 0 and 1 to compute the QTET at |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.