General function to create a parameter.

create_param(name, id, value, ...)

Arguments

name

the parameters' name. Valid names can be found in get_param_names

id

the parameter's ID

value

value of the parameter

...

specific parameter parameters

Value

a parameter

Author

Richèl J.C. Bilderbeek

Examples

# Create an alpha parameter
alpha_param <- create_alpha_param()

# Use the parameter in a distribution
beta_distr <- create_beta_distr(
  alpha = alpha_param
)

# Use the distribution to create a BEAST2 input file
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 = beta_distr
  )
)
file.remove(beast2_input_file)
#> [1] TRUE