Construct a chi-squared distribution object.

chi_squared(df)

Arguments

df

Degrees of freedom (positive scalar)

Value

A chi_squared object

Examples

x <- chi_squared(df = 5)
mean(x)
#> [1] 5
vcov(x)
#> [1] 10
format(x)
#> [1] "Chi-squared distribution (df = 5)"