Description Usage Arguments Value Author(s) Examples
A function to calculate the log likelihood of a phylogenetic tree given various coalescent models.
1  | loglik(phy, parr, Model, Rcpp = F)
 | 
phy | 
 A phylogenetic tree.  | 
parr | 
 Parameters.  | 
Model | 
 A Model choice from const (constant population size), expo (exponetial growth),expan (expansion growth), log (logistic growth), step (piecewise constant), pexpan (piecewise expansion growth) and plog (piecewise logistic growth).  | 
Rcpp | 
 Calculation is based on C++ code when it is True and on R code when it is False.  | 
log likelihood of a phylogeny given a coalescent model and parameters.
Fei Xiang (xf3087@gmail.com)
1 2 3  | data(village)
system.time(loglik(village,c(100,1),Model="expo",Rcpp=T))
system.time(loglik(village,c(100,1),Model="expo",Rcpp=F))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.