Description Usage Arguments Value Examples
View source: R/hw07Functions.R
Perform ChiSquare Test of Homogeneity
1 | chiSquareCounts(tib, x, y)
|
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 |
p-value from ChiSquare Test of Homogenity between data in columns x and y of tib
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.