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
3 weeks ago (1.24.0)
function p2f
p2f(
p: number,
df1: number,
df2: number,
twoside?: boolean,
): number

F distribution p value to f value P value is the probability of f value to the right tail if twoside is false otherwise, it is the number above times 2

f 分布的 p 值转 f 值 如果是单尾检验,p 值是 f 值右尾的概率 如果是双尾检验,p 值是 f 值右尾概率的两倍

Parameters

p value

degree of freedom 1

degree of freedom 2

optional
twoside: boolean = false

two side or not (default is false)

Return Type

f value

Throws

Error

df1 must be greater than 0

Error

df2 must be greater than 0

Add Package

deno add jsr:@psych/lib

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @psych/lib

Import symbol

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

Add Package

yarn dlx jsr add @psych/lib

Import symbol

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

Add Package

pnpm dlx jsr add @psych/lib

Import symbol

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

Add Package

bunx jsr add @psych/lib

Import symbol

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