Hello everyone!
I have a country code year panel data. I want to create a duration variable (dur_regime) that starts when war starts (the first year war=1) and ends when the regime falls (gwf_fail=1). For the same country, multiple wars and multiple regime falls possible, however, if there are more than one war or regime fall war and gwf_fail are still coded as 1 (binary). Could you please let me know how do I create this variable?
Also, once I have created this variable, I would like to run a stcox regression in which failure (dur_regime==1) and main independent variable is alliance. Could someone please let me know how do I set the stset properly for this purpose?
Thanks a million!
Related Posts with Panel data survival model
Pesaran’s test, Modified Wald test, Wooldridge test | Panel dataHi, I have an unbalanced panel data. I tried Poolability test, Breushch-Pagan LM, Hausman; hence Fi…
Log-gamma model for panel data (GLM with individual fixed effects)Dear all, I would like to estimate a log-gamma model for panel data, using individual fixed effects…
meta regression using STATA 16Hi to everybody.. I try again to explain my problem, hoping that somebody answer me. Not being very …
Working with survey data: using weights in svy: proportionHi, I've recently started to work more with survey data, and discovered Stata's survey functions. H…
ivregress influential observationsHello to everyone, do you know any way of identifying the most influential observations after the co…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data survival model
Post a Comment