Learn R Programming

TimeMachine

The TimeMachine is a computationally efficient R implementation of the simulation approach for stochastic trees by the same name proposed by Jasra, De Iorio, and Chadeau-Hyam.

In general, the simulation of genealogical trees backwards in time (from observations up to the most recent common ancestor) is hindered by the fact that, while approaching the root of the tree, coalescent events become rarer, with a corresponding increase in computation time. The Time Machine tackles this issue by stopping the simulation of the tree before reaching the MRCA and correcting for the induced bias.

Installation

The latest stable version of the package is available from CRAN, and can be easily installed using install.packages.

Copy Link

Version

Install

install.packages('TimeMachine')

Monthly Downloads

40

Version

1.2.1

License

GPL (>= 2)

Last Published

September 11th, 2018

Functions in TimeMachine (1.2.1)

time-dist

Time to Coalescent Event or Mutation
tm

Log-likelihood Estimation using the Time Machine
pdm

Example Dataset
pophistory

History of Population Size
sample.pop

Sample Populations from the Wright-Fisher Model
stationary.dist

Compute Stationary Distribution of a Markov Chain
full.transitions

Full Transition Matrix Computation
mu.mle

Maximum-Likelihood Estimation of the Mutation Rate