Generates a random vector with each component having a permutation distribution based on the given (fixed) data vector.
a fixed numeric vector
optional probabilities for the components in
Jouni Kerman [email protected]
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
x <- rvpermut(1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.