chi_square {stats} | R Documentation |
frequencies and the observed frequencies in one or more categories. It takes a double input x and an integer freedom
for degrees of freedom as inputs. It returns the Chi Squared result.
chi_square(x, freedom);
```r #' Evaluates the cumulative distribution function (CDF) for a chi-squared #' distribution with degrees of freedom `k` at a value `x`. chisquared.cdf = function( x, k ) { return gammaCDF(x, k / 2.0, 0.5); } ```
the Chi Squared result.