In my dataset, a director can have different roles each year.
In my example, the director gets a new RoleName in 2010 and in 2016. The timeRole variable recounts again at a newrole.
I don't want that is recounts, but counts further, from 3 to 4.
Thus, what I want is to make a new variable, that gets the first value of TimeRole in the first year the Director appears on the board (Timerole can also be like 5 for example in the first year) and then starts counting for the followings years.
Thus in the example, start at 0 and end at 11 TimeRole.
What is the best way to counter this problem?Array
Related Posts with Not recounting new CEO role
Elasticities for different years using "reg3"I'm using "reg3" command to estimate a simultaneous system of demand and supply. I've a world demand…
How to generate a new variable using an existing variableHello everyone, I am learning Stata and need some help. I have a variable called mrs_90day which has…
does "xtset" and "i.year", "i.country" are the same things?I wanted to confirm my understanding if I get the same results from the following two commands: (the…
Problems in command for concentration index and slope index of inequityHi, I am facing problem in using STATA command like conindex, cixr, siilogit, equiplot. It is sayi…
goodness of fit and multi-linear regression analysisHi experts, It did not work when I ran "estat gof" after a multivariable linear regression model. I…
Subscribe to:
Post Comments (Atom)
0 Response to Not recounting new CEO role
Post a Comment