I am trying to obtain rolling "Bayesian" coefficients using a panel dataset with 50-quarter timespan for 1700 firms. In other words, I want to derive firm-specific betas that are updated every quarter by regressing depvar on indepvar,
Code:
xtset firmid quarter
Code:
rolling _b, window(10) recursive saving(coefficients1, replace): reg depvar indepvar
Code:
rolling _b, window(10) recursive saving(coefficients2, replace): bayes: regress depvar indepvar
Code:
bayes may not be used in this context
0 Response to Rolling Bayesian Estimation
Post a Comment