View source: R/monte_carlo_functions.R
ffm_describe_betas | R Documentation |
This function can be used to explore the shapes and parameters of alternative Beta distributions. Given one or more values for each of the two Beta parameters, it calculates the density curve for each combination plus the mean, mode and variance of the distribution.
ffm_describe_betas(
beta.a = c(2, 5, 10),
beta.b = c(2, 5, 10),
show.plot = TRUE
)
beta.a |
Vector of one or more values for parameter |
beta.b |
Vector of one or more values for parameter |
show.plot |
If |
Note that this function will draw and describe Beta distributions
with any valid parameter values, but the ffm_param_variance
function only accepts distributions where both parameters are greater
than one to ensure that the mode exists.
Invisibly returns a list with elements:
A ggplot object showing the distributions.
A data frame summarizing the moments of the distributions.
ffm_param_variance
which has an option to use
a Beta distribution to vary parameter values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.