Dear All,

You might find the attached script useful for teaching purposes.

It runs a simple CAPM with a January dummy variable and plots the rolling coefficients and the rolling R^2.

Credit to Michalis Tsachakis for this.

regards
Theo

--
Theodore Panagiotidis
University of Macedonia
Thessaloniki, Greece