Skip to main content

@psych/lib@1.24.0
Built and signed on GitHub Actions

A TypeScript library for math, statistics, and data analysis. Featured in psychological and educational research.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 weeks ago (1.24.0)
class OneWayAnova

One-way ANOVA

单因素方差分析

Constructors

new
OneWayAnova(
value: number[],
group: (string | number)[],
)

One-way ANOVA

单因素方差分析

Properties

Mean square between

处理间均方

Mean square total

总均方

Mean square within

处理内均方

Between-group sum of squares

处理间平方和

Total sum of squares

总平方和

Within-group sum of squares

处理内平方和

cohenD: { groupA: string; groupB: string; diff: number; d: number; }[]

Cohen's d for each group pair (d = diff / sqrt(MSw))

每组对的 Cohen's d (d = diff / sqrt(MSw))

Measure effect size Cohen's f

测量效应量 Cohen's f

Between-group degrees of freedom

处理间自由度

Total degrees of freedom

总自由度

Within-group degrees of freedom

处理内自由度

F value

F值

Groups

分组

Count of each group

每组的元素个数

Mean of each group

每组的均值

Sum of each group

每组的和

Number of groups

组数

Sample size

样本量

P value

P值

Measure effect R2 (or eta2) (equals SSb / SSt)

测量效应 R2 (或 eta2) (等于 处理间平方和 / 总平方和)

Values

分组数据

Methods

Bonferroni post hoc test Sp^2 = MSw

Bonferroni 事后检验 Sp^2 使用 MSw 代替

Scheffe post hoc test

Scheffe 事后检验

Tukey's HSD post hoc test

Tukey's HSD 事后检验

Add Package

deno add jsr:@psych/lib

Import symbol

import { OneWayAnova } from "@psych/lib";

---- OR ----

Import directly with a jsr specifier

import { OneWayAnova } from "jsr:@psych/lib";

Add Package

npx jsr add @psych/lib

Import symbol

import { OneWayAnova } from "@psych/lib";

Add Package

yarn dlx jsr add @psych/lib

Import symbol

import { OneWayAnova } from "@psych/lib";

Add Package

pnpm dlx jsr add @psych/lib

Import symbol

import { OneWayAnova } from "@psych/lib";

Add Package

bunx jsr add @psych/lib

Import symbol

import { OneWayAnova } from "@psych/lib";