StreitbergRoehmel.c File Reference

#include <R.h>
#include <Rmath.h>
#include <Rdefines.h>

Include dependency graph for StreitbergRoehmel.c:

Go to the source code of this file.

Defines

#define PERM_MAX_N   1000000

Functions

SEXP R_cpermdist2 (SEXP score_a, SEXP score_b, SEXP m_a, SEXP m_b, SEXP retProb)
SEXP R_cpermdist1 (SEXP scores)


Detailed Description

Exact Distribution of Two-Sample Permutation Tests Streitberg & Roehmel Algorithm

Author:
Author
hothorn
Date:
Date
2006-10-17 13:17:12 +0200 (Tue, 17 Oct 2006)

Definition in file StreitbergRoehmel.c.


Define Documentation

#define PERM_MAX_N   1000000
 

Definition at line 19 of file StreitbergRoehmel.c.

Referenced by R_cpermdist1(), and R_cpermdist2().


Function Documentation

SEXP R_cpermdist1 SEXP  scores  ) 
 

The density of the permutation distribution for the one sample problem.

REFERENCES

Bernd Streitberg & Joachim R\"ohmel (1986), Exact distributions for permutations and rank tests: An introduction to some recently published algorithms. Statistical Software Newsletter 12(1), 10-17.

Bernd Streitberg & Joachim R\"ohmel (1987), Exakte Verteilungen f\"ur Rang- und Randomisierungstests im allgemeinen $c$-Stichprobenfall. EDV in Medizin und Biologie 18(1), 12-19 (in german).

Parameters:
scores score vector (such as rank(abs(y)) for wilcoxsign_test)

Definition at line 204 of file StreitbergRoehmel.c.

References PERM_MAX_N.

SEXP R_cpermdist2 SEXP  score_a,
SEXP  score_b,
SEXP  m_a,
SEXP  m_b,
SEXP  retProb
 

The density of the permutation distribution for the independent two sample problem.

REFERENCES

Bernd Streitberg & Joachim R\"ohmel (1986), Exact distributions for permutations and rank tests: An introduction to some recently published algorithms. Statistical Software Newsletter 12(1), 10-17.

Bernd Streitberg & Joachim R\"ohmel (1987), Exakte Verteilungen f\"ur Rang- und Randomisierungstests im allgemeinen $c$-Stichprobenfall. EDV in Medizin und Biologie 18(1), 12-19 (in german).

Parameters:
score_a score vector (typically c(1,1,...,1))
score_b score vector (typically ranks)
m_a integer indicating the sum of m_a elements of score_a
m_b integer indicating the sum of m_b elements of score_b
retProb logical indicating whether the density (TRUE) or the matrix of all permutations should be returned

Definition at line 46 of file StreitbergRoehmel.c.

References PERM_MAX_N.


Generated on Tue Apr 24 16:57:10 2007 for coin by  doxygen 1.4.6