Learn R Programming

beautier (version 2.6.12)

create_one_div_x_distr: Create a 1/x distribution

Description

Create a 1/x distribution

Usage

create_one_div_x_distr(id = NA, value = NA, lower = NA, upper = NA)

Value

a 1/x distribution

Arguments

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 upper to Inf.

Author

Richèl J.C. Bilderbeek

See Also

the function create_distr shows an overview of all supported distributions

Examples

Run this code
if (is_on_ci()) {

  one_div_x_distr <- create_one_div_x_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 = one_div_x_distr
    )
  )
  file.remove(beast2_input_file)

  remove_beautier_folder()
}

Run the code above in your browser using DataLab