Learn R Programming

R2sample (version 5.1.0)

Various Methods for the Two Sample Problem

Description

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.

Copy Link

Version

Install

install.packages('R2sample')

Monthly Downloads

840

Version

5.1.0

License

GPL (>= 2)

Maintainer

Wolfgang Rolke

Last Published

November 7th, 2026

Functions in R2sample (5.1.0)

power_study

power_study
myTS2

a local function needed for the vignette
myTS_disc

This function runs a test for discrete data
case_studies

Create case studies
plot_power

This function draws the power graph, with curves sorted by the mean power and smoothed for easier reading.
myTS_cont

New test for continuous data
run.studies

Power Comparisons
twosample_test_adjusted_pvalue

Adjusted p values for simultaneous testing in the two-sample problem.
twosample_test

Tests for the univariate two-sample problem
run_shiny

Runs the shiny app associated with R2sample package
timecheck

Test computation time
test_methods

This function checks whether the correct methods have been requested
pvaluecdf

pvaluecdf
funs_list

funs_list
R2sample-package

R2sample: Various Methods for the Two Sample Problem
hhg_settings

Settings of the HHG test
param

param
twosample_power

Power estimation for two-sample methods