SAS provides a confidence interval for the parameter lambda. Any value of lambda which is outside the confidence interval represents a transformation which is statistically a poor fit when compared with the fit obtained for the optimal lambda.
Because the confidence interval is so small for the data which were presented in the example that I referenced, you don't actually see the confidence limits in the first example. We can observe the confidence limits by writing code that shows the model likelihood for very small increments of lambda in the region of lambda=0.
title 'Basic Box-Cox Example';
data x;
do x = 1 to 8 by 0.025;
y = exp(x + normal(7));
output;
end;
run;
proc transreg data=x ss2 details;
title2 'Several Options Demonstrated';
model boxcox(y / lambda=-2 -1 -0.5 -0.4 -0.3 -0.2
-0.1 to 0.1 by 0.01
0.2 0.3 0.4 0.5 1 2
convenient
alpha=0.01)
= identity(x);
run;
In the above example, we look at the effect of changes of 0.01 in lambda in the region near lambda=0. In specifying alpha=0.01, any value of lambda not marked with an asterisk (*) indicates a transformation which does not fit as well as the optimal transformation with a test level of p=0.01. So, lambda=-0.06 and all smaller values of lambda as well as lambda=0.03 and all larger values of lambda do not fit as well as a lambda of -0.02 at p=0.01.
As explained in the documentation which was previously referenced, the CONVENIENT option indicates that if the confidence interval contains a value in the set (-3, -2, -1, -0.5, 0, 0.5, 1, 2, 3), then the value from this list which has the smallest -2LL value will be flagged as the optimal transformation. So, rather than stating that we will use X**-0.02, we find that the transformation log(X) is identified as the "optimal" transformation.
I presume that you understand that the value of lambda indicates a power transformation (x**lambda) and that lambda=0 indicates taking the logarithm of x. Thus, we find for the data in the above example that log(x) is an appropriate transformation and this fits the data better than X**2, X, sqrt(X), 1/sqrt(X), 1/X or
1/(X**2).