are_hyper_pars: Test if a list has hyperparameters

Description Usage Arguments Value Author(s) Examples

View source: R/create_pars.R

Description

Test if a list has hyperparameters

Usage

1
are_hyper_pars(hyper_pars)

Arguments

hyper_pars

A named list of numeric hyperparameters for the rate calculations as returned by create_hyper_pars:

  • [1]: is d_0 the scaling parameter for exponent for calculating cladogenesis rate

  • [2]: is x the exponent for calculating extinction rate

  • [3]: is alpha, the exponent for calculating the immigration rate

  • [4]: is beta the exponent for calculating the anagenesis rate.

Value

TRUE if list contains hyperparameters, FALSE otherwise.

Author(s)

Pedro Neves, Joshua Lambert

Examples

1
2
3
testit::assert(
  are_hyper_pars(create_hyper_pars(d_0 = 0.027, x = 0.15, 0.294, 0.383))
)

xieshu95/DAISIE_new documentation built on March 20, 2020, 5:31 a.m.