init.simulate.BM: Initialize BM

View source: R/simulate.R

init.simulate.BMR Documentation

Initialize BM

Description

Function used in simulate for BM initialization.

Usage

init.simulate.BM(phy, p, root.state, simulate_random, ...)

Arguments

phy

Input tree.

root.state

(list) State of the root, with: random : random state (TRUE) or deterministic state (FALSE) value.root : if deterministic, value of the character at the root exp.root : if random, expectation of the character at the root var.root : if random, variance of the character at the root (pxp matrix)

Value

paramSimu Array p x Nnode x 2 (BM), filled with NAs. Slice paramSimu[, ntaxa + 1, ] (array p x 2) is initialized with simulated states and root expectations for all the traits.


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.