#' A Cramer's V function
#'
#' This function allows you to calcualte Cramer's V
#' @param
#' @keywords Cramer's V
#' @export
cramersV <- function(..., correct = FALSE) {
test <- chisq.test(...)
N <- sum(test$observed)
k <- min(dim(test$observed))
V <- sqrt(test$statistic / (N * (k - 1)))
names(V) <- NULL
return(V)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.