This macro performs a regression analysis of Y on X.1 - X.n for each level of a grouping variable.
Be sure that Minitab knows where to find your downloaded macro. Choose Macro location browse to the location where you save macro files.. Under
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.
%BYREG C2 C3 - C8 C10
Click Submit Commands.
The last column listed is assumed to be the grouping variable. The macro will skip any group that does not have at least p + 2 observations where p is the number of independent predictor variables.