Skip to contents

sim.reg.adapt.data- Simulate Multi-Optima Adaptive Model Data

Usage

sim.reg.adapt.data(phy, N, Z_adaptive, hl, vy, Sxx, optima, beta, shifts)

Arguments

phy

An object of the class "phylo"

N

Number of tips on tree

Z_adaptive

Number of X traits

hl

True half-life value

vy

True Vy value

Sxx

Instantaneous variance of the BM process

optima

True optima

beta

True beta

shifts

Nodes for regime shifts

Value

Merged phylogeny and data in treeplyr format