Description Usage Arguments Value Note Author(s) References Examples
rvdens
generates a random vector where each simulation comes from a
Bernoulli sampling distribution.
1 |
n |
number of random scalars to draw |
FUN |
density function |
range |
range to discretize over |
unitprecision |
how many points per unit length |
... |
other arguments passed on to |
A random vector (an rv object) of length n
.
The resulting vector will not be independent and identically
distributed Bernoulli unless prob
is a fixed number.
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")
.
1 2 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.