scale_variance_process: Scale the variances

View source: R/simulatePhyloPoissonLogNormal.R

scale_variance_processR Documentation

Scale the variances

Description

Scale the variances of the process simulation so that they are equal to log_variance_phylo.

Usage

scale_variance_process(
  log_variance_phylo,
  tree,
  model.process,
  selection.strength
)

Arguments

tree

a dated phylogenetic tree of class phylo with 'samples.per.cond * 2' species.

model.process

the process to be used for phylogenetic simulations. One of "BM" or "OU", default to "BM".

selection.strength

if the process is "OU", the selection strength parameter.

Value

A matrix N * P of factors to multiply the simulated phylogenetic residuals.


csoneson/compcodeR documentation built on Nov. 3, 2024, 6:05 a.m.