View source: R/betafunctions.R
rBeta.4P | R Documentation |
Function for generating random numbers from a specified Four-Parameter Beta Distribution.
rBeta.4P(n, l, u, alpha, beta)
n |
Number of draws. |
l |
The first (lower) location parameter. |
u |
The second (upper) location parameter. |
alpha |
The alpha (first) shape parameter. |
beta |
The beta (second) shape parameter. |
A vector with length n
of random values drawn from the Four-Parameter Beta Distribution.
# Assume some variable follows a four-parameter Beta distribution with
# location parameters l = 0.25 and u = 0.75, and shape parameters alpha = 5
# and beta = 3. To draw a random value from this distribution using
# rBeta.4P():
rBeta.4P(n = 1, l = 0.25, u = 0.75, alpha = 5, beta = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.