chiSquareCounts: Perform ChiSquare Test of Homogeneity

Description Usage Arguments Value Examples

View source: R/hw07Functions.R

Description

Perform ChiSquare Test of Homogeneity

Usage

1
chiSquareCounts(tib, x, y)

Arguments

tib

tibble dataframe with colnames that contain x and y

x

column x of tib, variable 1 of comparison

y

column y of tib, variable 2 of comparison

Value

p-value from ChiSquare Test of Homogenity between data in columns x and y of tib

Examples

1
2
3
4
data = dplyr::tibble("sex" = c(1,0,1),"group" = c("A","B","C"), "age" = c(40,15,33), "height" = c(63, 70, 68))

chiSquareCounts(data, "sex", "group")
chiSquareCounts(data, "age", "height")

hmumme/bmi585hmumme documentation built on Dec. 20, 2021, 4:46 p.m.