Hello,
I am a new Statalist. I have a firm ID variable(Ticker), a string variable(NED consist of "yes" and "no"), and the year(year). I want to count the number of observations when NED indicates "yes" in each firm and each year. I want to exclude missing data in this case. Ideally I should generate a newvar named outsiders which gives me the total number of observations when NED is yes for every firm in each year. Appreciate any helps!
my data looks like this:
NED DirectorName RoleName Ticker year
No Ron Rose Chief Information Officer BKNG 2002
No Ron Rose Chief Information Officer BKNG 2003
No Ron Rose Chief Information Officer BKNG 2004
No Ron Rose Chief Information Officer BKNG 2005
No Stef Norden Executive Officer BKNG 2006
No Stef Norden Executive Officer BKNG 2007
No Trey Urbahn Division Chairman BKNG 2002
No Trey Urbahn Division President BKNG 2001
Yes Bill Ford III Director - SD BKNG 2000
Yes Bill Ford III Director - SD BKNG 2001
Yes Bill Ford III Director - SD BKNG 2002
Yes Craig Rydin Independent Director BKNG 2005
Yes Craig Rydin Independent Director BKNG 2006
Yes Craig Rydin Independent Director BKNG 2007
Yes Craig Rydin Independent Director BKNG 2008
Yes Craig Rydin Independent Director BKNG 2009
Yes Craig Rydin Independent Director BKNG 2010
Yes Craig Rydin Independent Director BKNG 2011
Related Posts with count total observations per firm per year
Heckman - Wooldridge - selection model for for 2SLS estimator - complex contextAssume that we have a stock exchange with 500 listed firms. Every year, the data for one of the exp…
cmp for a multinomial charity choice/hurdle modelHi, I am trying to estimate a model of charitable giving. I have a study where individuals are given…
Creating this TableHello all, I am doing an Age-Period-Cohort analysis and was wondering how I can create the follow ta…
How to generate counterfactual polynomial fitHello, I am looking to generate a counterfactual polynomial fit for some data. Essentially, I have …
Creating dummiesHey everyone! I have panel data between 2014 and 2018 on multiple socioeconomic and demography facto…
Subscribe to:
Post Comments (Atom)
0 Response to count total observations per firm per year
Post a Comment