As the line chart shows, the yields have quite different locations. While this is unimportant to the processor, the Kolmogorov-Smirnov test is sensitive to differences in location and shape. Centering each yield around its mean will eliminate that difference and allow for a comparison of their shapes.

step To center Aflatoxin PPB, from the Data Editor menus choose:

Transform
 Compute...

step Type ctrtoxin as the target variable.

step Click Type&Label.

step Type Centered aflatoxin level as the label.

step Click Continue.

step Click If in the Compute Variable dialog box.

step Select Include if case satisfies condition.

step Type yield=4 in the expression area.

step Click Continue.

step The mean aflatoxin level for yield 4 is 14.6875, so type toxin - 14.6875 in the expression area.

step Click OK.

That takes care of yield 4, but yield 8 remains.

step Recall the Compute Variable dialog box.

step Click If in the Compute Variable dialog box.

step Type yield=8 in the expression area.

step Click Continue.

step Type toxin - 8.4375 in the expression area.

step Click OK.

step Click OK to finish centering the variable.