Chi-squared goodness-of-fit test
Examples
res <- chi2_goodness_of_fit(c(20, 30, 25, 25))
res$p_value
#> [1] 0.5724067
res$df
#> [1] 3
Chi-squared goodness-of-fit test
res <- chi2_goodness_of_fit(c(20, 30, 25, 25))
res$p_value
#> [1] 0.5724067
res$df
#> [1] 3