get_df: Compute the degrees of freedom for the input chi square test...

View source: R/chi_square_goodness_of_fit_functions.R

get_dfR Documentation

Compute the degrees of freedom for the input chi square test table using formula matching that of excel. Formula: df = (r-1)(c-1). If table has only one column, df = r - 1.

Description

Compute the degrees of freedom for the input chi square test table using formula matching that of excel. Formula: df = (r-1)(c-1). If table has only one column, df = r - 1.

Usage

get_df(table)

Arguments

table

Either the expected or the observation table for the chi square test

Value

Degrees of freedom


jlederluis/digitanalysis documentation built on Nov. 5, 2023, 11:46 a.m.