are_hyper_pars: Test if a list has hyperparameters

View source: R/DAISIE_check_format.R

are_hyper_parsR Documentation

Test if a list has hyperparameters

Description

Test if a list has hyperparameters

Usage

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 the scaling parameter for exponent for calculating cladogenesis rate

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

Value

TRUE if list contains hyperparameters, FALSE otherwise.

Author(s)

Pedro Neves, Joshua Lambert

Examples

testit::assert(
  DAISIE:::are_hyper_pars(create_hyper_pars(d = 0.027, x = 0.15))
)

DAISIE documentation built on June 2, 2022, 5:07 p.m.