slide.freq: Sliding window measurements of clade split frequencies.

Description Usage Arguments Value Examples

View source: R/slide.freq.R

Description

This function takes sliding windows of a specified length over an MCMC chain and calculates the split frequency of clades within that window. It allows users to see whether the chain is visiting different areas of treespace.

Usage

1
slide.freq(chains, burnin = 0, window.size = 20)

Arguments

chains

A list of rwty.trees objects.

burnin

The number of trees to eliminate as burnin. Defaults to zero.

window.size

The number of trees to include in each window (note, specified as a number of sampled trees, not a number of generations)

Value

A list of rwty.slide objects, one per chain in the input list of chains. Each rwty.slide object contains the frequencies of clades in the sliding windows, and a translation table that converts clade groupings to factors.

Examples

1
2
data(fungus)
slide.data <- slide.freq(fungus, burnin=20)

rwty documentation built on May 30, 2017, 6:07 a.m.

Search within the rwty package
Search all R packages, documentation and source code