rvempirical: Generate a Random Vector from an Empirical Distribution
Description
rvempirical generates a random vector of the same length as data
from the empirical distribution of the data.
Usage
rvempirical(n, data)
Arguments
n
Number of i.i.d. rv components to generate
data
Data (constants)
Details
rvempirical
References
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing
Posterior Simulations Using Random Variable Objects.
Statistics and Computing 17:3, 235-244.