
Last chance! 50% off unlimited learning
Sale ends in
rvexp
rvexp(n = 1, rate = 1)
integer: number of variables to generate
prior distribution for the rate parameter (constant or random)
rvexp
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")
.
# NOT RUN {
y <- rvexp(1, rate=rvexp(1)) # What marginal distribution does y have now?
# }
Run the code above in your browser using DataLab