rvpermut {rv}R Documentation

Random Vectors with a Permutation Distribution

Description

Generates a random vector with each component having a permutation distribution based on the given (fixed) data vector.

Usage

  rvpermut(data, prob=NULL)

Arguments

data a fixed numeric vector
prob optional probabilities for the components in data

Details

Author(s)

Jouni Kerman kerman@stat.columbia.edu http://www.stat.columbia.edu/~kerman

References

Kerman, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

  x <- rvpermut(1:10)

[Package rv version 0.949 Index]