Skip to content

Commit

Permalink
dunn_test doc updated #50
Browse files Browse the repository at this point in the history
  • Loading branch information
kassambara committed Feb 13, 2021
1 parent 7fa2128 commit 5576895
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 14 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Expand Up @@ -9,6 +9,7 @@

## Bug fixes

- The `dunn_test()` documentation is updated to describe the discrepancy between the default behaviour of the `rstatix::dunn_test()` comapred to other packages (`dunn.test` and `jamovi`). The default of the rstatix::dunn_test() function is to perform a two-sided Dunn test like the well known commercial softwares, such as SPSS and GraphPad. This is not the case for some other R packages (dunn.test and jamovi), where the default is to perform one-sided test (#50).
- Now, the function `get_summary_stats()` handles the user defined probabilities for grouped data (#78)


Expand Down
21 changes: 14 additions & 7 deletions R/dunn_test.R
Expand Up @@ -5,18 +5,25 @@ NULL
#'@description Performs Dunn's test for pairwise multiple comparisons of the
#' ranked data. The mean rank of the different groups is compared. Used for
#' post-hoc test following Kruskal-Wallis test.
#'
#' The default of the \code{rstatix::dunn_test()} function is to perform a
#' two-sided Dunn test like the well known commercial softwares, such as SPSS
#' and GraphPad. This is not the case for some other R packages
#' (\code{dunn.test} and \code{jamovi}), where the default is to perform
#' one-sided test. This discrepancy is documented at
#' \href{https://github.com/kassambara/rstatix/issues/50}{https://github.com/kassambara/rstatix/issues/50}.
#'
#'@inheritParams t_test
#'@return return a data frame with some of the following columns: \itemize{
#' \item \code{.y.}: the y (outcome) variable used in the test. \item
#' \code{group1,group2}: the compared groups in the pairwise tests. \item
#' \code{n1,n2}: Sample counts. \item \code{estimate}: mean ranks difference.
#' \item \code{estimate1, estimate2}: show the mean rank values of
#' the two groups, respectively.
#' \item \code{statistic}: Test statistic (z-value) used to compute the
#' p-value. \item \code{p}: p-value. \item \code{p.adj}: the adjusted p-value.
#' \item \code{method}: the statistical test used to compare groups. \item
#' \code{p.signif, p.adj.signif}: the significance level of p-values and
#' adjusted p-values, respectively. }
#' \item \code{estimate1, estimate2}: show the mean rank values of the two
#' groups, respectively. \item \code{statistic}: Test statistic (z-value) used
#' to compute the p-value. \item \code{p}: p-value. \item \code{p.adj}: the
#' adjusted p-value. \item \code{method}: the statistical test used to compare
#' groups. \item \code{p.signif, p.adj.signif}: the significance level of
#' p-values and adjusted p-values, respectively. }
#'
#' The \strong{returned object has an attribute called args}, which is a list
#' holding the test arguments.
Expand Down
20 changes: 13 additions & 7 deletions man/dunn_test.Rd

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

0 comments on commit 5576895

Please sign in to comment.