proc anova data=sasuser.rwg179; class reef; model dens = reef; run;
The Pure ERROR sum of squares will be on the line for "ERROR" in the ANOVA TABLE. i.e. SS(Pure Error) = 0.0369080 with 18 df
This is equivalent to finding the sample Variance in each "group" (reef in this case) and summing over the groups: Sum (nj - 1)*VARj where nj is the number of observations in group j and Varj is the sample Variance in group j. You would only do this for groups where there is more than one observation. The df = Sum (nj - 1) summing over the groups. You may want to verify this by hand.
RSS = Pure ERROR + Lack of Fit
Same for df: RESIDUAL df = PE df + LAF df.
DF SS MS F
Residual: 25 0.2407
LOF 7 0.2038 .2038/7 F = (.2038/7)/(.0369/18) = 14.2
PE 18 0.0369 .0369/18
F (alpha = .05) is between 2.66 and 2.51
F (alpha = .001) is between 6.35 and 5.76