chi2distribution: The Chi-Squared Distribution

density_chi2R Documentation

The Chi-Squared Distribution

Description

Density, (cumulative) distribution function and random generation for chi-squared distribution.

Usage

density_chi2(df, x)

cdf_chi2(df, x)

random_chi2(df, n)

Arguments

df

degrees of freedom.

x

vector of quantiles.

n

number of observations.

Value

The functions density_XXX and cdf_t return numeric vectors of same length as x. The functions random_XXX return random number (numeric vectors) of length n.

Examples


density_chi2(df = 3, 1:10)
cdf_chi2(df = 3, 1:10)
random_chi2(df = 3, n = 10)


rjd3toolkit documentation built on Jan. 14, 2026, 1:06 a.m.