get data in correct format for using panel methods in qte package
panelize.data(data, idname, tname, t, tmin1, tmin2 = NULL)
data.frame
A data.frame containing all the variables used
The individual (cross-sectional unit) id name
The name of the column containing the time periods
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.
The 2nd time period in the sample. This should be a pre-treatment period for all individuals in the sample.
The 1st time period in the sample. This should be a pre-treatment period for all individuals in the sample.