Learn R Programming

BAMMtools (version 2.1.12)

summary.bammdata: Summary of rate shift results from BAMM analysis

Description

Summarizes the posterior distribution on the number of shifts.

Usage

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

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.

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).

Author

Mike Grundler, Dan Rabosky

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.

References

http://bamm-project.org/

Examples

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

Run the code above in your browser using DataLab