perm_matrix | R Documentation |
Generates matrix for permutaitons. Each row is a permutation. Makes it easy to do block permutations. Repeated lines are avoided. Original ordering is always the last row.
perm_matrix(nobs, nperm, block_size = NULL, seed = NULL)
nobs |
number of observations to permute |
nperm |
number of permutations, including original data ordering. |
block_size |
Desired block size for block permutation. |
seed |
seed to be fed into set.seed function |
matrix for use in permutation methods. Each row is one permutation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.