Hello,
I am new to Stata and I have a question for which I can not find a solution online. Any help would be highly appreciated![Smile]()
I have to replicate a regression table where the regression coefficients are obtained by averaging the coefficients from annual logit regressions over a given sample period. My sample consists of 21,534 firm-year observations (panel data).
I tried to compute the values by using the statsby-command. Unfortunately, Stata freezes when I enter the following code:
Thank you very much in advance for your help.
Regards,
Adriana
I am new to Stata and I have a question for which I can not find a solution online. Any help would be highly appreciated

I have to replicate a regression table where the regression coefficients are obtained by averaging the coefficients from annual logit regressions over a given sample period. My sample consists of 21,534 firm-year observations (panel data).
I tried to compute the values by using the statsby-command. Unfortunately, Stata freezes when I enter the following code:
However, if I replace "logit" by "reg", I obtain the desired results. How can I get my code working for "logit"?
use "UK_reg", clear
statsby _b, by(fyear) verbose nodots: logit payers pcrank mb growth prof1 ecem
list
sum _b_pcrank
sum _b_mb
sum _b_growth
sum _b_prof1
sum _b_ecem
Thank you very much in advance for your help.
Regards,
Adriana