ANOVA (ANOVA v0.7.2)

Copy Markdown View Source

ANOVA (Analysis of variance)

Summary

Functions

One-way ANOVA for k independent groups (unequal n allowed).

Types

groups()

@type groups() :: [number_list()]

number_list()

@type number_list() :: [number()]

one_way_result()

@type one_way_result() :: %{
  summary: %{
    groups: pos_integer(),
    group_sizes: [pos_integer()],
    total_observations: pos_integer(),
    overall_mean: float(),
    group_means: [float()]
  },
  anova_table: %{
    between: %{ss: float(), df: float(), ms: float()},
    within: %{ss: float(), df: float(), ms: float()},
    total: %{ss: float(), df: float()}
  },
  test_results: %{
    f_statistic: float(),
    p_value: float(),
    eta_squared: float(),
    omega_squared: float()
  }
}

Functions

one_way(groups)

@spec one_way(groups()) :: one_way_result()

One-way ANOVA for k independent groups (unequal n allowed).

Call ANOVA.one_way(groups) where groups is a list of lists of numbers.

Returns a map with the computed values.