Learn R Programming

rv (version 0.949)

rvexp: Generate Random Vectors from an Exponential Sampling Model

Description

rvexp

Usage

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, Jouni and Gelman, Andrew. Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Technical report, Columbia University, New York.

Examples

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

Run the code above in your browser using DataLab