NOTE This is file CHOLEST.MTB
READ 'cholest.dat' c1-c6
name c1 'P'
name c2 'G2'
name c3 'G3'
name c4 'G4'
name c5 'G5'
name c6 'Group'
NOTE The following is the traditional one-way analysis of variance
ONEWAY 'P' by the groups specified in 'Group'
NOTE The following is the same analysis of variance using regression
NOTE with dummy variables
REGRESS 'P' on 4 independent variables 'G2'-'G5';
resids c45.
name c45 'RawRes'
NOTE Residuals are generated above to plot as a graphical check on
NOTE the assumption of equality of variances
PLOT 'RawRes' versus 'Group'