fitmodels: Fit data and a list of Mk models with simmap Makes a list of...

View source: R/simmaphelper.R

fitmodelsR Documentation

Fit data and a list of Mk models with simmap Makes a list of all possible model schemes for transitions between a set of states.

Description

Fit data and a list of Mk models with simmap

Makes a list of all possible model schemes for transitions between a set of states.

Usage

fitmodels(tree, priors.tips, model.transitions, priors.root = NULL)

Arguments

tree

newick character string with phylogenetic tree

priors.tips

matrix with character state priors for the tips of the tree

model.transitions

a square matrix or list of square matrices for the transition rate parameter schemes; a list with all possible parameter schemes can be generated with the function transitionModels

priors.root

a numeric vector with the priors for the character states at the root node. Default is a uniform distribution.

Value

A list of transition matrices, for all possible partitions of pairwise transitions into parameters describing transitions.


JeffWeinell/misc.wrappers documentation built on Sept. 20, 2023, 12:42 p.m.