simMarkov: Simulate a character on the tree

View source: R/makeSimmap.R

simMarkovR Documentation

Simulate a character on the tree

Description

Simulates a character using an instanteous rate matrix, storing the states at nodes and at the tips of the tree.

Usage

simMarkov(phy, Q, root.freqs)

Arguments

phy

A phylogeny of class phylo.

Q

an instantaneous rate matrix.

root.freqs

A vector of root frequencies.

Details

This function will generate a character at tips and at interior nodes given a tree and Q matrix.

Value

A two element list containing 'TipStates' and 'NodeStates'

Author(s)

James D. Boyko


thej022214/corHMM documentation built on April 16, 2024, 2:27 a.m.