st0621;
mkduration;
binary cross-sectional time series;
event history;
duration;
D O I:
10.1177/1536867X20976322
中图分类号:
O1 [数学];
C [社会科学总论];
学科分类号:
03 ;
0303 ;
0701 ;
070101 ;
摘要:
In cross-sectional time-series data with a dichotomous dependent variable, failing to account for duration dependence when it exists can lead to faulty inferences. A common solution is to include duration dummies, polynomials, or splines to proxy for duration dependence. Because creating these is not easy for the common practitioner, I introduce a new command, mkduration, that is a straightforward way to generate a duration variable for binary cross-sectional time-series data in Stata. mkduration can handle various forms of missing data and allows the duration variable to easily be turned into common parametric and nonparametric approximations.