inhomogenous_coal.log_lh: Compute likelihood of a realisation of an inhomogeneous...

View source: R/inhomogenous_coal.R

inhomogenous_coal.log_lhR Documentation

Compute likelihood of a realisation of an inhomogeneous coalescent.

Description

Compute likelihood of a realisation of an inhomogeneous coalescent.

Usage

inhomogenous_coal.log_lh(
  sampling_times,
  coalescent_times,
  Neg.rate,
  Neg.rate.int
)

Arguments

sampling_times

times of leaves.

coalescent_times

times of coalescent events.

Neg.rate

function equal to 1/Neg(t).

Neg.rate.int

integral of 1/Neg(t) from t to t+s.

Value

the log likelihood for the given parameters.


dhelekal/CaveDive documentation built on June 11, 2024, 4:32 p.m.