Hello,
I have data which is as below. ISO_O is the country, StartYear and EndYear are the years of commencement and finish of a political leader's reign. I would like to create a panel type structure and also generate a dummy for the years that the leader was in power.
input str4 ISO_O int(StartYear EndYear) float Duration
"ABW" 2017 2019 3
"ARG" 2007 2015 9
"AUS" 2010 2013 4
"AUT" 2016 2017 2
"AUT" 2004 2004 1
end
[/CODE]
Therefore, for instance, for ABW the dummy would be '1' for years 2017,2018 and 2019 (i.e. 3 years, which is indicated by the duration variable too).
Thanks in advance for your help and insights.
Related Posts with Year Dummies for a duration
How to interpret non-standardised coefficients?Hi all, I am looking at the effect of gender inequality (measured by GII which is a 0 to 1 scale, w…
Advice on survival analysis setupHello everyone, I’m hoping to solicit some advice from those of you that are familiar with survival…
Whether to include squared terms with OLS or notHi all, I am running a regression on logged hourly pay and was wondering how to test whether I shou…
Should we winsorize the interaction variables ?I have two variable, a and b a is a normal vari b is a dummy ( 0 and 1) c = a*b c is for interation …
Education Calculation!Good Afternoon Everyone, I wonder if someone can help me to find a right command. I need to calcul…
Subscribe to:
Post Comments (Atom)
0 Response to Year Dummies for a duration
Post a Comment