rbeta_ab | R Documentation |
The Beta distribution
rbeta_ab(n, prior, sd, min, max)
dbeta_ab(x, prior, sd, min, max)
n |
The number of random values you want in the returned vector. |
prior |
Prior value |
sd |
Standard deviation |
min |
Minimum value |
max |
Maximum value |
x |
X value for distribution |
Random generation for the Beta distribution with parameters based on the mean and standard deviation as well as the ranges as implemented in CASAL. This formulation is also available on Wikipedia. This function is a direct copy of the code available from Wetzel and Punt.
A vector of doubles, where the length of the vector depends on the
length of x
value passed to n
.
dbeta_ab
returns density estimates for each input value and rbeta_ab
provides random deviates from the Beta distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.