Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenst committed Sep 10, 2021
1 parent dd35ae0 commit 9690adb
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(groups))/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 9690adb

Please sign in to comment.