Learn R Programming

BAMMtools (version 2.1.0)

summary.bammdata: 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 (unused).

Value

  • Returns (invisibly) a dataframe with 2 components:
  • shiftsthe number of shifts
  • probthe corresponding posterior probability of a model with a given number of rate shifts.

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

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