create_distr | R Documentation |
General function to create a distribution.
create_distr(name, id, value = NA, lower = NA, upper = NA, ...)
name |
the distribution name. Valid
names can be found in |
id |
the distribution's ID |
value |
the initial value for the MCMC |
lower |
the lower bound, the lowest possible value |
upper |
an upper limit of the uniform distribution.
If the upper limits needs to be infinity, set |
... |
specific distribution parameters |
a distribution
Prefer using the
named functions
create_beta_distr
,
create_exp_distr
,
create_gamma_distr
,
create_inv_gamma_distr
,
create_laplace_distr
,
create_log_normal_distr
,
create_normal_distr
,
create_one_div_x_distr
,
create_poisson_distr
and create_uniform_distr
See
create_beta_distr
,
create_exp_distr
,
create_gamma_distr
,
create_inv_gamma_distr
,
create_laplace_distr
,
create_log_normal_distr
,
create_normal_distr
,
create_one_div_x_distr
,
create_poisson_distr
and create_uniform_distr
for examples how to use those distributions
Richèl J.C. Bilderbeek
if (is_on_ci()) {
# Use any distribution
distr <- create_beta_distr()
beast2_input_file <- get_beautier_tempfilename()
create_beast2_input_file(
input_filename = get_fasta_filename(),
beast2_input_file,
tree_prior = create_yule_tree_prior(
birth_rate_distr = distr
)
)
file.remove(beast2_input_file)
remove_beautier_folder()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.