* adjust path to your file
use LBO_HLP, clear
3
4
*Table 1
sum volume scaledvolume assetvalue riskpremium EbitdaSpread ///
HYSpread GZSpread ///
if inrange(dateq,yq(1982,4),yq(2011,4)), f separator(0)
9
10
*Table 2
local regressors = `" "riskpremium" "EbitdaSpread" "' ///
13 + `" "riskpremium EbitdaSpread" "HYSpread" "riskpremium HYSpread" "' ///
14 + `" "GZSpread" "riskpremium GZSpread" "' ///
15 + `" "EbitdaSpread HYSpread GZSpread" "' ///
16 + `" "riskpremium EbitdaSpread HYSpread GZSpread" "'
17
* Panel a
qui foreach regressor of local regressors{
eststo: ivreg2 scaledvolume `regressor' i.quarter ///
21 if inrange(dateq,yq(1982,4),yq(2011,4)) ///
22 , kernel(bar) bw(5) robust
23 }
24
esttab, b(%8.2f) se compress drop(*quarter) title("Volume")
eststo clear
27
* Panel b
qui foreach regressor of local regressors{
eststo: ivreg2 assetvalue `regressor' i.quarter ///
31 if inrange(dateq,yq(1982,4),yq(2011,4)) ///
32 , kernel(bar) bw(5) robust
33 }
34
esttab, b(%8.2f) se compress drop(*quarter) title("Value")
eststo clear
37
38
39
40