Hello,
I have some troubles in counting the firm number in panel data. I have 3741 fiscal year observations during 1994-2006. And I want to count how many firms are there in my sample.
I used the command below:
bysort fyear gvkey
count gvkey
"fyear" is the fiscal year and "gvkey" is the company ID.
But there always shows an error as ": required r(100);" in Stata.
So could you please tell me what I am doing wrong? Thank you very much!
Related Posts with How to count firm number in panel data?
Removing duplicate matchesHi, I have used vmatch to match my control group to my treatment group based on two characteristics…
Stone geometric price index in stataHi Statalists, Does anyone know how to compute the Stone geometric price index in stata? …
Clever appendHi Statalisters, hope to find you all well. So, the problem is the following. I have two large pan…
Bootstraping after "mi estimate, cmdok: sureg"Hi Statalist, I would like to test the significance of the indirect effect of multiple mediators. T…
Problems constructing a Variable indicating the share of male and female in an occupationDear Statalisters, I am currently working on a university project and am struggeling to build a var…
Subscribe to:
Post Comments (Atom)
0 Response to How to count firm number in panel data?
Post a Comment