Метод | Описание | |
---|---|---|
oneWay ( variadic |
One-way ANOVA Technique used to compare means of three or more samples (using the F distribution). | |
twoWay ( variadic |
Two-way ANOVA Examines the influence of two different categorical independent variables on one continuous dependent variable. The two-way ANOVA not only aims at assessing the main effect of each independent variable but also if there is any interaction between them (using the F distribution). |
public static oneWay ( variadic |
||
$samples | variadic |
Samples to analyze (at least 3 or more samples) |
Результат | array | [ ANOVA => [ treatment => [SS, df, MS, F, P], error => [SS, df, MS], total => [SS, df], ], total_summary => [n, sum, mean, SS, variance, sd, sem], data_summary => [ 0 => [n, sum, mean, SS, variance, sd, sem], 1 => [n, sum, mean, SS, variance, sd, sem], ... ] ] |
public static twoWay ( variadic |
||
$data | variadic |
Samples to analyze [ // Factor A₁ [ [4, 6, 8] // Factor B₁ [6, 6, 9] // Factor B₂ ⋮ ], // Factor A₂ [ [4, 8, 9] // Factor B₁ [7, 10, 13] // Factor B₂ ⋮ ], ... ] |
Результат | array | [ ANOVA => [ factorA => [SS, df, MS, F, P], factorB => [SS, df, MS, F, P], factorAB => [SS, df, MS, F, P], error => [SS, df, MS], total => [SS, df], ], total_summary => [n, sum, mean, SS, variance, sd, sem], summary_factorA => [ 0 => [n, sum, mean, SS, variance, sd, sem], 1 => [n, sum, mean, SS, variance, sd, sem], ... ], summary_factorB => [ 0 => [n, sum, mean, SS, variance, sd, sem], 1 => [n, sum, mean, SS, variance, sd, sem], ... ], summary_factorAB => [ 0 => [n, sum, mean, SS, variance, sd, sem], 1 => [n, sum, mean, SS, variance, sd, sem], ... ] ] |