Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (36 sloc) 1.6 KB

Travis-CI Build Status Coverage Status

Beta, use with caution!

This is a lightweight implementation of my pmc package focusing on what I think are the more common use cases (e.g. it will no longer support comparisons of a geiger model against an ouch model). Further, it does not cover many of the newer model fitting that have been implemented since pmc was first released.

The goal of this release is mostly to provide compatibility with current versions of geiger.

Getting started

Install the package:


A trivial example with data simulated from the lambda model.

phy <- sim.bdtree(n=20)
dat <- sim.char(rescale(phy, "lambda", .2), 1)[,1,]
out <- pmc(phy, dat, "BM", "lambda", nboot = 100)

Plot the results:

dists <- data.frame(null = out$null, test = out$test)
dists %>% 
  gather(dist, value) %>%
  ggplot(aes(value, fill = dist)) + 
  geom_density(alpha = 0.5) + 
  geom_vline(xintercept = out$lr)


Carl Boettiger, Graham Coop, Peter Ralph (2012) Is your phylogeny informative? Measuring the power of comparative methods, Evolution 66 (7) 2240-51. doi:10.1111/j.1558-5646.2011.01574.x

Jump to Line
Something went wrong with that request. Please try again.