rvpermut {rv} | R Documentation |
Generates a random vector with each component having a permutation distribution based on the given (fixed) data vector.
rvpermut(data, prob=NULL)
data |
a fixed numeric vector |
prob |
optional probabilities for the components in data |
Jouni Kerman jouni@kerman.com
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv")
.
x <- rvpermut(1:10)