chiSquareCounts: Chi-squared test

Description Usage Arguments Value Examples

View source: R/homework.R

Description

Takes in a tibble of counts and returns a list with the tibble, and result of the Chi-squared test.

Usage

1

Arguments

tib

The tibble of counts.

Value

A list containing the table tib, and the result of the Chi-squared test (including X-squared, degrees of freedom df, and p-value of the test).

Examples

1
chiSquareCounts(as_tibble(cbind(c(21,3),c(14,10))))

loublanpain/BMI585FinalProjectLouBlanpain documentation built on Dec. 21, 2021, 11:49 a.m.