Hi all,
I've performed a time-series regression loop by using the following code (approximately 250 regressions):
gen sic_2 = real(substr(sic,1,3))
egen SIC_id = group(sic_2)
drop if SIC_id==.
bysort SIC_id: gen no_obs=[_N]
keep if n_obs>50
forval i = 1(1)258{
if inlist(`i', 65,66,67,170,195,232,236,249,250,251) continue
reg WD_WC WCFO_m1 WCFO_0 WCFO_p1 if `i' == SIC_id, r
estimates store reg`i'
}
where WD_WC means change in working capital, and WCFO_m1, WCFO_0, and WCFO_p1 are past, current, and future cash flows, respectively (model of Dechow and Dichev of 2002).
This gives me all the coefficients of the 250 regressions. However, I want to save their coefficients as 'one'. So, actually, I want to know the mean of these 250 coefficients. Specifically, I want the mean of alpha (the constant), B0, B1, and B2.
Does anyone know how I can do this? I would be really really happy to receive an answer.
Roy
Related Posts with Time-series regression loop (approximately 250 regressions) and saving their coefficients
Fuzzy match and group names within a listHi there! I have a long list of mutual fund names ever appeared in CRSP. I want to fuzzy match and g…
How to test if the sum of two parameters are zero when we use mlogit command?Hi I want to know how to test if the sum of two parameters are zero in the mlogit context. <Nota…
Testing correlation of two variables with many variablesHi I have the following variables drought_rp, flood_rp, *_rms *_rms represents 50 variables with _rm…
Creating graphs showing survival curves with confidence intervals on multiple record dataHi Statalist. Is there a way to show survival curves with confidence intervals for multiple-record …
Effect of Endogeneity on SignificanceDear Statalist, I have a fairly simple doubt, forgive me if it's rather basic, but I was wondering …
Subscribe to:
Post Comments (Atom)
0 Response to Time-series regression loop (approximately 250 regressions) and saving their coefficients
Post a Comment