perm.pairs: Paired permutation

View source: R/perm.pairs.R

perm.pairsR Documentation

Paired permutation

Description

Perform a random permutation of the data list.

Usage

perm.pairs( x, paired = FALSE )

Arguments

x

a list of numerical vectors to be compared (each vector is an element of the list).

paired

logical; set to TRUE if the data are paired (i.e. non-independent samples).

Value

It returns a list with paired elements of x randomly permuted.

Note

Internal function called by perm.test.

Author(s)

Massimiliano Pastore

Examples

set.seed(20150605)
# independent samples
x <- list(X1=rnorm(10), X2=rt(15,8)) 
perm.pairs( x )

x <- list(X1=rnorm(10), X2=rt(15,8), X3=rchisq(12,3))
perm.pairs( x )

# non-independent samples
x <- list(X1=rnorm(10), X2=rt(10,8)) 
perm.pairs( x, paired = TRUE )


overlapping documentation built on Feb. 19, 2026, 9:06 a.m.