Get the Cohort Index
get.cohort.Rd
Gets the cohort index given a panel data.
Arguments
- data
a data frame, can be a balanced or unbalanced panel data.
- D
the treatment indicator. The treatment should be binary (0 and 1).
- index
a two-element string vector specifying the unit and time indicators. Must be of length 2. Every observation should be uniquely defined by the pair of the unit and time indicator.
- varname
a string specifying the name for the generated cohort index.
- entry.time
a list of intervals for first get-treated time.
References
Jushan Bai. 2009. "Panel Data Models with Interactive Fixed Effects." Econometrica.
Yiqing Xu. 2017. "Generalized Synthetic Control Method: Causal Inference with Interactive Fixed Effects Models." Political Analysis.
Athey, Susan, et al. 2021 "Matrix completion methods for causal panel data models." Journal of the American Statistical Association.
Licheng Liu, et al. 2022. "A Practical Guide to Counterfactual Estimators for Causal Inference with Time-Series Cross-Sectional Data." American Journal of Political Science.
For more details about the matrix completion method, see https://github.com/susanathey/MCPanel.
See also
fect
and print.fect