UNPKG

als-statistics

Version:

Modular JS statistics toolkit for Node.js and the browser: descriptive stats, correlations (Pearson/Spearman/Kendall), t-tests & ANOVA (Student/Welch), reliability (Cronbach’s alpha), regression (linear/logistic), clustering (DBSCAN/HDBSCAN), and table/co

28 lines (19 loc) 721 B
<title>One‑Way ANOVA</title> <description>Classic (pooled) and Welch’s ANOVA.</description> <keywords>one, way, anova, class, onewayanova, returned, comparemeans.anova, anovawelch, public, fields, js, new</keywords> # One‑Way ANOVA Classic (pooled) and Welch’s ANOVA. ## Class: `OneWayAnova` (returned by `CompareMeans.anova` / `anovaWelch`) **Constructor** ```js new OneWayAnova(data: Record<string, number[]>, welch=false) ``` - `data``group → values`. - Set `welch=true` for **Welch ANOVA**. ### Public fields - `F: number` - `dfBetween: number` - `dfWithin: number` - `p: number` – right‑tail p‑value via F CDF. - `k: number` – number of groups. - `msw: number` – mean square within.