chi_square {stats} R Documentation

The chiSquare method is used to determine whether there is a significant difference between the expected

Description

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.

Usage

chi_square(x, freedom);

Arguments

x

a numeric input.

freedom

integer input for degrees of freedom. [as integer]

Details

```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); } ```

Authors

sciBASIC.NET

Value

the Chi Squared result.

clr value class

Examples


[Package stats version 5.0.1.2389 Index]