Learn R Programming

rv (version 0.949)

rvunif: Generate Random Vectors from a Uniform Sampling Model

Description

Generates random variables from a Uniform sampling model.

Usage

rvunif(n=1, min=0, max=1)

Arguments

n
integer: number of scalars to generate
min
lower limit of the distribution, (may be random)
max
upper limit of the distribution, (may be random)

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 <- rvunif(1, min=rvunif(1)-1, rvunif(1)+1) # What marginal distribution does y have now?

Run the code above in your browser using DataLab