Skip to contents

sim.reg.adapt.mlm.ve.data- Simulate Multilevel Multi-Optima Adaptive Model Data - Varying Effects

Usage

sim.reg.adapt.mlm.ve.data(
  phy,
  N,
  Z_adaptive,
  hl,
  vy,
  Sxx,
  optima.bar,
  optima.sd,
  beta.bar,
  beta.sd,
  rho,
  shifts
)

Arguments

phy

An object of the class "phylo"

N

Number of tips on tree

Z_adaptive

Number of Adaptive X traits

hl

True half-life value

vy

True Vy value

Sxx

Instantaneous variance of the BM process

optima.bar

True average optima

optima.sd

True standard deviation of the optima

beta.bar

True average beta

beta.sd

True standard deviation of the betas

rho

True corelation between optimas and betas

shifts

Nodes for regime shifts

Value

Merged phylogeny and data in treeplyr format