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
25 lines (17 loc) • 768 B
Markdown
<title>Cronbach’s Alpha</title>
<description>## Class: `CronbachAlpha`</description>
<keywords>cronbach, s, alpha, class, cronbachalpha, public, fields, js, new, data, record, string</keywords>
# Cronbach’s Alpha
## Class: `CronbachAlpha`
**Constructor**
```js
new CronbachAlpha(data: Record<string, number[]>)
```
- Requires **≥ 2** parallel scales/items of equal length.
### Public fields
- `alpha: number` – reliability estimate.
- `sumOfVariances: number` – sum of item variances (sample).
- `sumColumnVariance: number` – variance of summed score across rows.
- `bessel: number` – correction factor `k/(k-1)`.
- `ifItemsDeleted: Record<string, number>` – getter recomputed lazily.
- `htmlTable: string` – formatted summary table (getter).