| perm.pairs | R Documentation |
Perform a random permutation of the data list.
perm.pairs( x, paired = FALSE )
x |
a list of numerical vectors to be compared (each vector is an element of the list). |
paired |
|
It returns a list with paired elements of x randomly permuted.
Internal function called by perm.test.
Massimiliano Pastore
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 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.