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?
Replacing values in multiple string variableI have string variables asset1-asset25. For each variable, I want to change NA to missing values Th…
Oaxaca decompositionHi friends, I am trying to estimate the ethnic pay gap in Sri Lanka and want to use oaxaca decompos…
How to save each Latent Class model (n=3) as predictor to run a regression model?Hi there, I am trying to look at the typologies of food outlets (within 1km from home) and eating be…
Randomized Inference for Panel Data-ritest- is a easy way to do Randomized Inference (thanks Simon HeB), but I'm not certain it works t…
Minimum Detectable Effect Using Non-parametric Power Simulations on Existing Data and AssignmentI am interested in calculating the minimum detectable effect (MDE) using non-parametric power simula…
Subscribe to:
Post Comments (Atom)
0 Response to How to count firm number in panel data?
Post a Comment