Learn R Programming

BMhyd (version 1.2-8)

SimulateTipData: Simulate data on a network

Description

Simulate data on a network given its flow parameters

Usage

SimulateTipData(phy, flow, params, suffix="_DUPLICATE")

Arguments

phy
phylo object
flow
data.frame of the flow parameters
params
named vector of BMhyd parameter values
suffix
taxa are duplicated on the network; this suffix distinguishes them

Value

a named vector of tip values

Details

This function simulates tip data on a network, under a BMhyd model.

References

Jhwueng D.C. and O'Meara B.C. 2015. Trait evolution on phylogenetic networks. Submitted.

Examples

Run this code
#add example later. Perhaps using cichlid

	

Run the code above in your browser using DataLab