Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coinPermTest

Compare means of two vectors by permutation test


Description

Run coin-flipping like permutation tests (to compare difference of 2 means: 'x1' and 'x2') without any distribution-assumptions. Uses the package coin.

Usage

coinPermTest(
  x1,
  x2,
  orient = "two.sided",
  nPerm = 5000,
  silent = FALSE,
  callFrom = NULL
)

Arguments

x1

numeric vector (to be compared with vector 'x2')

x2

numeric vector (to be compared with vector 'x1')

orient

(character) may be "two.sided","greater" or "less"

nPerm

(integer) number of permutations

silent

(logical) suppress messages

callFrom

(character) allow easier tracking of messages produced

Value

"MCp" class numeric output with p-values

See Also

oneway_test in LocationTests

Examples

coinPermTest(2, 3, nPerm=500)

wrMisc

Analyze Experimental High-Throughput (Omics) Data

v1.5.4
GPL-3
Authors
Wolfgang Raffelsberger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.