rvexp

rvexp(n = 1, rate = 1)

Arguments

n

integer: number of variables to generate

rate

prior distribution for the rate parameter (constant or random)

Details

rvexp

References

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").

Author

Jouni Kerman jouni@kerman.com

Examples


  y <- rvexp(1, rate=rvexp(1)) # What marginal distribution does y have now?