The following functions are associated with the chi-squared equation:
• dchisq(x, d)—Returns the probability density for value x.
• pchisq(x, d)—Returns the cumulative probability distribution for value x.
• qchisq(p, d)—Returns the inverse cumulative probability distribution for probability p.
• rchisq(m, d)—Returns a vector of m random numbers having the chi-squared distribution.
Arguments
• x is a scalar or vector of real values, x ≥ 0. Negative values of x produce a result of zero.
• d is a positive integer representing the degrees of freedom. While the distribution equation is meant to be formulated for integers, you can also use real values.