Various Methods for the Two Sample Problem

The routine twosample_test() in this package runs the two sample test using various test statistic. The p values are found via permutation or large sample theory. The routine twosample_power() allows the calculation of the power in various cases, and plot_power() draws the corresponding power graphs. The routine run.studies allows a user to quickly study the power of a new method and how it compares to some of the standard ones.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("R2sample")

5.0.0 by Wolfgang Rolke, a month ago


Browse source code at https://github.com/cran/R2sample


Authors: Wolfgang Rolke [aut, cre] (ORCID:


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp, parallel, shiny, ggplot2, stats, graphics, microbenchmark, stats.1

Suggests rmarkdown, knitr, testthat

Linking to Rcpp


See at CRAN