dist_skel | R Documentation |
This function acts as a skeleton for a truncated distribution defined by
model type, maximum value and model parameters. It is designed to be used
with the output from get_dist()
.
dist_skel(
n,
dist = FALSE,
cum = TRUE,
model,
discrete = FALSE,
params,
max_value = 120
)
n |
Numeric vector, number of samples to take (or days for the probability density). |
dist |
Logical, defaults to |
cum |
Logical, defaults to |
model |
Character string, defining the model to be used. Supported options are exponential ("exp"), gamma ("gamma"), and log normal ("lognormal") |
discrete |
Logical, defaults to |
params |
A list of parameters values (by name) required for each model. For the exponential model this is a rate parameter and for the gamma model this is alpha and beta. |
max_value |
Numeric, the maximum value to allow. Defaults to 120. Samples outside of this range are resampled. |
A vector of samples or a probability distribution.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.