We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OneWayANOVATest
LeveneTest
FlignerKilleenTest
in function 'anova' line 4 Z̄ = mean(Z̄ᵢ) is wrong. It must be Z̄ = sum(Z̄ᵢ .* Nᵢ) / sum(Nᵢ).
Z̄ = mean(Z̄ᵢ)
Z̄ = sum(Z̄ᵢ .* Nᵢ) / sum(Nᵢ).
As a result, function using 'anova', ie. OneWayANOVATest, LeveneTest, FlignerKilleenTest are wrong, too.
function anova(scores::AbstractVector{<:Real}...) Nᵢ = [length(g) for g in scores] Z̄ᵢ = mean.(scores) # Z̄ = mean(Z̄ᵢ) Z̄ = sum(Z̄ᵢ .* Nᵢ) / sum(Nᵢ) SStᵢ = Nᵢ .* (Z̄ᵢ .- Z̄).^2 SSeᵢ = sum.( (z .- z̄).^2 for (z, z̄) in zip(scores, Z̄ᵢ) ) (Nᵢ, SStᵢ, SSeᵢ) end
The text was updated successfully, but these errors were encountered:
BrownForsytheTest is wrong, too.
Sorry, something went wrong.
Duplicate #242
The solution proposed by @wildart at #242 is more efficient. Anybody willing to make a PR, with a test?
No branches or pull requests
in function 'anova' line 4
Z̄ = mean(Z̄ᵢ)
is wrong.
It must be
Z̄ = sum(Z̄ᵢ .* Nᵢ) / sum(Nᵢ).
As a result, function using 'anova', ie.
OneWayANOVATest
,LeveneTest
,FlignerKilleenTest
are wrong, too.The text was updated successfully, but these errors were encountered: