Learn R Programming

beautier (version 2.6.12)

get_gamma_site_model_n_params: Get the number of distributions a site model has

Description

Get the number of distributions a site model has

Usage

get_gamma_site_model_n_params(gamma_site_model)

Value

the number of parameters a site model has

Arguments

gamma_site_model

a site model's gamma site model, as returned by create_gamma_site_model

Author

Richèl J.C. Bilderbeek

Examples

Run this code
check_empty_beautier_folder()

# 0 parameters
get_gamma_site_model_n_params(
  create_gamma_site_model(gamma_cat_count = 0)
)

# 0 parameters
get_gamma_site_model_n_params(
  create_gamma_site_model(gamma_cat_count = 1)
)

# 1 parameter
get_gamma_site_model_n_params(
    create_gamma_site_model(
    gamma_cat_count = 2,
    gamma_shape_prior_distr = create_exp_distr()
  )
)

check_empty_beautier_folder()

Run the code above in your browser using DataLab