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?
How do I keep only the matched observation after data set merge (STATA 15)Hi, I used the one to many formula to merge two data sets. Once done, how can I keep only the match…
Saving margins estimates as a new variableHi Statalisters, Is it possible to save margins estimates as a new variable? In the example below, I…
Hausman test issues in panel dataHi all, i am sonia kaur. I am using stata 15.1 version at tbe moment. I joined this forum recently a…
Displaying contents of a constraint: negative values shows up as "0-,12345" etc.Dear all, I have been a long-time reader of Statalist and usually find what I need in the excellent…
Use e(sample) on imputed datasetDear Statalist, I'm doing Cox regression with a categorical variable. To obtain the count within e…
Subscribe to:
Post Comments (Atom)
0 Response to How to count firm number in panel data?
Post a Comment