From bug-request at octave dot org Wed Dec 7 15:52:39 2005 Subject: bugfix for anova.m From: "John W. Eaton" To: D Goel Cc: KH , bug@octave.org Date: Wed, 7 Dec 2005 16:52:18 -0500 On 7-Dec-2005, D Goel wrote: | --- anova.m 2005-12-07 16:38:38.322759384 -0500 | +++ tmpanovamy.m 2005-12-07 16:40:15.681958536 -0500 | at @ -80,7 +80,7 @@ | | endif | | - total_mean = mean (group_mean); | + total_mean = mean(y(:)); | SSB = sum (group_count .* (group_mean - total_mean) .^ 2); | SST = sumsq (reshape (y, n, 1) - total_mean); | SSW = SST - SSB; I think this change was already made, back in May: 2005-05-24 John W. Eaton * statistics/tests/anova.m: Use mean (y(:)) to compute total_mean. Thanks, jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------