calc_rr_cr_diff: Calculates the difference in likelihood for a clade (single...

View source: R/calc_rr_cr_diff.R

calc_rr_cr_diffR Documentation

Calculates the difference in likelihood for a clade (single lineage or radiation) across different standard deviations of gamma distribution of the relaxed-rate DAISIE model.

Description

Calculates the difference in likelihood for a clade (single lineage or radiation) across different standard deviations of gamma distribution of the relaxed-rate DAISIE model.

Usage

calc_rr_cr_diff(island_clade, relaxed_par, sd, par_upper_bound)

Arguments

island_clade

A list with information on a single island clade, including clade name, branching times (including island age and colonisation time), stac (status of colonist), number of missing species and type of clade (either type 1 or 2)

relaxed_par

A string defining which parameter to relaxed. Options are: "cladogenesis", "extinction", "carrying_capacity", "immigration" or "anagenesis"

sd

A vector of numerics with the standard deviation to be used to check the difference between the original DAISIE model and the relaxed-rate DAISIE model

par_upper_bound

A numeric which sets the upper bound to the integration of the likelihood, can be infinite or finite.

Value

A list of two numeric vectors


joshwlambert/relaxedDAISIE documentation built on Nov. 23, 2023, 12:29 p.m.