Skip to contents

Converts a Bayesian population sizes parameter to XML

Usage

b_pop_sizes_parameter_to_xml(
  b_pop_sizes_parameter,
  beauti_options = create_beauti_options()
)

Arguments

b_pop_sizes_parameter

a Bayesian population size parameter, as created by create_b_pop_sizes_param

beauti_options

one BEAUti options object, as returned by create_beauti_options

Value

the parameter as XML text

Author

Richèl J.C. Bilderbeek

Examples

b_pop_sizes_parameter_to_xml(
  b_pop_sizes_parameter = create_b_pop_sizes_param(id = 42),
  beauti_options = create_beauti_options()
)
#> [1] "<parameter id=\"bPopSizes.t:42\" dimension=\"5\" lower=\"0.0\" name=\"stateNode\" upper=\"380000.0\">380.0</parameter>"
b_pop_sizes_parameter_to_xml(
  b_pop_sizes_parameter = create_b_pop_sizes_param(id = 42, upper = Inf),
  beauti_options = create_beauti_options()
)
#> [1] "<parameter id=\"bPopSizes.t:42\" dimension=\"5\" lower=\"0.0\" name=\"stateNode\">380.0</parameter>"