Learn R Programming

overlapping (version 2.4)

paired.permutations: Permutation for non-independent data

Description

Randomly permute the paired data.

Usage

paired.permutations( x )

Value

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

Arguments

x

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

Author

Massimiliano Pastore

Details

When the data are paired (i.e. non-independent observations), the exchange takes place within each pair. Note: if the data are paired, the elements in the list must be of the same length and in the same order.

Examples

Run this code
set.seed(20150605)
x <- list(X1=rnorm(10), X2=rt(10,8))
paired.permutations( x )

Run the code above in your browser using DataLab