Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename normalized_chi() to fei() #475

Merged
merged 14 commits into from
Sep 12, 2022
5 changes: 2 additions & 3 deletions R/convert_stat_chisq.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#' Conversion Chi-Squared to Phi or Cramer's V
#'
#' Convert between Chi square (\eqn{\chi^2}), phi (\eqn{\phi}), Cramer's V,
#' Cohen's *w*, Fei (*פ*) and Pearson's *C* for contingency tables or
#' Cohen's *w*, Fei (\u05e4) and Pearson's *C* for contingency tables or
#' goodness of fit.
#'
#' @encoding UTF-8
#'
#' @param chisq The Chi-squared statistic.
#' @param n Total sample size.
Expand All @@ -27,7 +26,7 @@
#' \cr
#' \deqn{\text{Cramer's }V = \phi / \sqrt{min(nrow,ncol)-1}}{Cramer's V = \phi / sqrt(min(nrow,ncol)-1)}
#' \cr
#' \deqn{XXX = w / \sqrt{\frac{1}{min(p_E)}-1}}{Fei = w / sqrt(1/min(p_E) - 1))}
#' \deqn{Fei = w / \sqrt{\frac{1}{min(p_E)}-1}}{Fei = w / sqrt(1/min(p_E) - 1))}
#' Where `p_E` are the expected probabilities.
#' \cr
#' \deqn{\text{Pearson's }C = \sqrt{\chi^2 / (\chi^2 + n)}}{Pearson's C = sqrt(\chi^2 / (\chi^2 + n))}
Expand Down
5 changes: 2 additions & 3 deletions man/chisq_to_phi.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.