Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wildart committed May 28, 2022
1 parent be980f3 commit a229016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/var_equality.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ end
function anova(scores::AbstractVector{<:Real}...)
Nᵢ = [length(g) for g in scores]
Z̄ᵢ = mean.(scores)
= mean(Z̄ᵢ)
= sum(Iterators.flatten(scores))/sum(Nᵢ)
SStᵢ = Nᵢ .* (Z̄ᵢ .- Z̄).^2
SSeᵢ = sum.( (z .- z̄).^2 for (z, z̄) in zip(scores, Z̄ᵢ) )
(Nᵢ, SStᵢ, SSeᵢ)
Expand Down

0 comments on commit a229016

Please sign in to comment.