coalgen.iso: Simulation of coalescent times for isochronous data.

Description Usage Arguments Value Author(s) References Examples

View source: R/coalgen_iso.R

Description

coalgen.iso simulates coalescent times for isochronous data.

Usage

1
coalgen.iso(sample, trajectory, val_upper = 10)

Arguments

sample

A two dimensional vector of number of individuals and the initial time.

trajectory

A population growth function.

val_upper

Upper end of time points to be simulated.

Value

A data.frame with columns t containing event times and A giving lineages.

Author(s)

Fei Xiang (xf3087@gmail.com)

References

https://github.com/JuliaPalacios/coalsieve.

Examples

1
2
3
4
sample<-c(100,0)

trajectory<-function(x)  exp(10*x)
example.iso<-coalgen.iso(sample, trajectory)

xiangfstats/GenieR documentation built on May 4, 2019, 1:06 p.m.