MATLAB: Is there a typographical error in the SAMPSIZEPWR documentation in the Statistics Toolbox 6.0 (R2007a)

Statistics and Machine Learning Toolbox

There is a typo in the SAMPSIZEPWR documentation within Statistics Toolbox 6.0 (R2007a). The second example text reads:
"Compute the sample size n required to distinguish p =0.23 from p = 0.2 with a binomial test. The result is approximate, so make a plot to see if any smaller n values also have the required power of 0.5
napprox = sampsizepwr('p',.2,.26,.6)"
The input parameters do not match the values in the text.

Best Answer

The typographical error has been fixed in the documentation for Statistics Toolbox 6.2 (R2008a). For previous product releases, read below for any possible workarounds:
This is a typographical error in the documentation for the SAMPSIZEPWR function in the Statistics Toolbox 6.0 (R2007a). The text should read as follows in order to match the code in the example:
"Compute the sample size n required to distinguish p = 0.26 from p = 0.2 with a binomial test. The result is approximate, so make a plot to see if any smaller n values also have the required power of 0.6."