.clean_params | R Documentation |
.clean_params()
dispatches to a distribution
specific parameter cleaning function depending on prob_dist
. For example
prob_dist = "gamma"
will call .clean_params_gamma()
.
.clean_params(prob_distribution, prob_distribution_params)
.clean_params_gamma(prob_dist_params)
.clean_params_lnorm(prob_dist_params)
.clean_params_nbinom(prob_dist_params)
.clean_params_geom(prob_dist_params)
.clean_params_pois(prob_dist_params)
.clean_params_norm(prob_dist_params)
.clean_params_exp(prob_dist_params)
prob_distribution |
A |
prob_distribution_params |
A named vector of probability distribution parameters. |
Calling is_epiparameter_params()
at the start of
.clean_params()
ensures that if the parameterisation is
incorrect that it will error early and dispatch to the distribution
specific cleaning functions (e.g. .clean_params_gamma()
).
This means that the distribution specific parameter cleaning functions do
not need to check and error for incorrect parameterisation.
Named numeric
vector of parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.