Hello Everyone,
I have a panel data the looks as below and am trying to produce summary statistics table by using the command tabstat as follows:
tabstat AA BB , statistics( mean sd min p25 median p75 max count ) col(stat)
I want to add the number of Firms to the table, I understand that count is for observations only. hence, how I can amend my code to add the number of ids too?
Thanks in advance for your support.
Regards,
Khaled
I have a panel data the looks as below and am trying to produce summary statistics table by using the command tabstat as follows:
tabstat AA BB , statistics( mean sd min p25 median p75 max count ) col(stat)
I want to add the number of Firms to the table, I understand that count is for observations only. hence, how I can amend my code to add the number of ids too?
Firm | Year | AA | BB |
X | 2010 | ||
X | 2011 | ||
X | 2012 | ||
Y | 2010 | ||
Y | 2011 | ||
Y | 2012 | ||
Z | 2010 | ||
Z | 2011 | ||
Z | 2012 |
Thanks in advance for your support.
Regards,
Khaled
Comment