This macro performs a rolling regression, which allows you to check for changes in the regression coefficients over time. The first iteration runs a regression on rows 1 through k. The second iteration runs a regression on the rows 2 through k+1. The third iteration runs a regression on rows 3 through k+2 and so on.
Be sure that Minitab knows where to find your downloaded macro. Choose . Under Macro location browse to the location where you save macro files.
If you use an older web browser, when you click the Download button, the file may open in Quicktime, which shares the .mac file extension with Minitab macros. To save the macro, right-click the Download button and choose Save target as.
%ROLLING C1 C2 C3 C4 12
Click Run.