rvunif | R Documentation |
Generates random variables from a Uniform sampling model.
rvunif(n = 1, min = 0, max = 1)
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) |
Jouni Kerman jouni@kerman.com
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")
.
#' y <- rvunif(1, min=rvunif(1)-1, rvunif(1)+1) # What marginal distribution does y have now?
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.