Create a parameter called beta

create_beta_param(id = NA, value = 1)

Arguments

id

the parameter's ID

value

value of the parameter

Value

a parameter called beta

Note

this parameter is used in a beta distribution (as returned by create_beta_distr) and gamma distribution (as returned by create_gamma_distr) and inverse-gamma distribution (as returned by create_inv_gamma_distr). It cannot be estimated (as a hyper parameter) yet.

See also

the function create_param contains a list of all parameters that can be created

Author

Richèl J.C. Bilderbeek

Examples

# Create the parameter
beta_param <- create_beta_param()

# Use the parameter in a distribution
gamma_distr <- create_gamma_distr(
  beta = beta_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 = gamma_distr
  )
)
file.remove(beast2_input_file)
#> [1] TRUE