summary.bammdata {BAMMtools}R Documentation

Summary of rate shift results from BAMM analysis

Description

Summarizes the posterior distribution on the number of shifts.

Usage

## S3 method for class 'bammdata'
summary(object, display = 10, print = T, ...)

Arguments

object

An object of class bammdata.

display

An integer for the number of rows of the posterior to display.

print

Print summary of shift distribution in console window?

...

Additional arguments (currently unused).

Details

Prints to console the number of posterior samples and the posterior distribution on the number of shifts, which is just the fraction of samples in the posterior having 0, 1, 2,...n shifts.

Value

Returns (invisibly) a dataframe with 2 components:

shifts

The number of shifts.

prob

The corresponding posterior probability of a model with a given number of rate shifts.

Author(s)

Mike Grundler, Dan Rabosky

References

http://bamm-project.org/

Examples

data(whales, events.whales)
ephy <- getEventData(whales, events.whales, nsamples=100)
summary(ephy)

[Package BAMMtools version 2.1.11 Index]