chi_square_gof: Performs chi square test for goodness of fit test. Plots...

View source: R/chi_square_goodness_of_fit_functions.R

chi_square_gofR Documentation

Performs chi square test for goodness of fit test. Plots expected_table with 2D and/or 3D histograms accordingly if specified.

Description

Performs chi square test for goodness of fit test. Plots expected_table with 2D and/or 3D histograms accordingly if specified.

Usage

chi_square_gof(
  observed_table,
  expected_table,
  freq = TRUE,
  suppress_low_N = FALSE
)

Arguments

observed_table

Observation table for chi square test

expected_table

Expected table for chi square test

freq

TRUE or FALSE: Whether the input expected table is in decimal.

suppress_low_N

TRUE or FALSE: If TRUE, suppress columns in expected table if at least one cell in that column has expected value < 5. Default to FALSE.

Value

p-value for chi square goodness of fit test


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