coaltimeSimGP: Simulate from inhomogeneous, heterochronous coalescent driven...

Description Usage Arguments Value

View source: R/phylo_functions.r

Description

For simulating coalescent times using the method of thinning. This function is based on code written by Michael Karcher for the phylodyn package.

Usage

1
coaltimeSimGP(samp_times, n_sampled, trajvec, tvec, lower_bound)

Arguments

samp_times

numeric vector of sampling times.

n_sampled

numeric vector of samples taken per sampling time.

trajvec

vector of population sizes (should be dense)

tvec

grid boundaries for trajvec. Length is length(trajvec)+1

lower_bound

numeric lower limit on traj function on its support.

Value

A list containing vectors of coalescent times coal_times, intercoalescent times intercoal_times, and number of active lineages lineages, as well as passing along samp_times and n_sampled.


faulknerjam/bnps documentation built on Sept. 26, 2020, 8:07 p.m.