ddSimCoal: Simulation of coalescent dated phylogeny using...

View source: R/simulate.R

ddSimCoalR Documentation

Simulation of coalescent dated phylogeny using deterministic/'sideways' distribution of coalescent times

Description

Simulation of coalescent dated phylogeny using deterministic/'sideways' distribution of coalescent times

Usage

ddSimCoal(
  dates = 1990:2010,
  alphaFun = function(x) {
     return(10)
 },
  guessRootTime = NA,
  res = 1000,
  A_tol = 0.01
)

Arguments

dates

Sampling dates

alphaFun

Population size function Ne(t)

guessRootTime

Optional (but recommended) guess for when root may be reached.

res

Time axis resolution

A_tol

Tolerance for reaching time of root >0

Value

A simulated dated phylogeny


emvolz-phylodynamics/mlesky documentation built on May 2, 2024, 4:53 a.m.