View source: R/paired.permutations.R
| paired.permutations | R Documentation |
Randomly permute the paired data.
paired.permutations( x )
x |
a list of two numerical vectors to be compared (each vector is an element of the list). |
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.
It returns a list with paired elements of x randomly permuted.
Internal function called by perm.test.
Massimiliano Pastore
set.seed(20150605)
x <- list(X1=rnorm(10), X2=rt(10,8))
paired.permutations( x )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.