R/chi_squared.R
chi_squared.Rd
Construct a chi-squared distribution object.
chi_squared(df)
Degrees of freedom (positive scalar)
A chi_squared object
chi_squared
x <- chi_squared(df = 5) mean(x) #> [1] 5 vcov(x) #> [1] 10 format(x) #> [1] "Chi-squared distribution (df = 5)"