MD2sample1.1.1 package

Various Methods for the Two Sample Problem in D>1 Dimensions

bincounterR

Count Events in Bins

calcTS

This function calculates the test statistics

case.studies

Create case studies

change.marginals

Change Marginals of 2D Data

chisq2D_test_cont

This function does the chi square two sample test for continuous data ...

chisq2D_test_disc

This function does the chi square two sample test for continuous data ...

chiTS.cont

Chi-square test for continuous data, example of user supplied function

chiTS.disc

Chi-square test for discrete data, example of user supplied function

edge.tests

This function does the tests by Chen and Friedman

find_dist

find pairwise Euclidean distances

FR.test

Friedman-Rafsky (FR) test

gen_cont

simulate continuous data

gen_disc

simulate new discrete data

gen_sim_data

simulate new data

MD2sample-package

MD2sample: Various Methods for the Two Sample Problem in D>1 Dimension...

mdecdf

Finds the empirical distribution function

Order

equivalent to R command order

power_pvals

This function finds the power for tests that find their own p values

powerC

Find the power of various continuous tests via simutation or permutati...

Rank

equivalent to R command rank

rDalitz

This function creates data for Dalitz plot

run.studies

Benchmarking for Multivariate Two-Sample Tests

signif.digits

This function does some rounding to nice numbers

simpvals

Helper function to find test statistics of simulated data.

simTS

Helper function to find test statistics of simulated data.

test_methods

This function checks whether the correct methods have been requested

testC

run tests using either simulation or permutation.

timecheck

test function

transform01

transform data to interval (0,1).

TS_cont_pval

This function runs a number of two sample tests which find their own p...

TS_cont

Find test statistics for continuous data

TS_disc

Find test statistics for discrete data

twosample_power

Power Estimation for Multivariate Two-Sample Tests

twosample_test_adjusted_pvalue

Adjusted p values

twosample_test

Multivariate Two-Sample Tests

xysort

sort vector y by values in vector x

The routine twosample_test() in this package runs the two-sample test using various test statistic for multivariate data. The user can also run several tests and then find a p value adjusted for simultaneous inference. The p values are found via permutation or via the parametric bootstrap. The routine twosample_power() allows the estimation of the power of the tests. The routine run.studies() allows a user to quickly study the power of a new method and how it compares to those included in the package. For details of the methods and references see the included vignettes.

  • Maintainer: Wolfgang Rolke
  • License: GPL (>= 2)
  • Last published: 2026-02-02