Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65569

Problems with statsby and logit

$
0
0
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

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:

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

However, if I replace "logit" by "reg", I obtain the desired results. How can I get my code working for "logit"?

Thank you very much in advance for your help.

Regards,

Adriana

Viewing all articles
Browse latest Browse all 65569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>