globalReconstructionWithPE: Predict global ancestral state under the pulsed evolution...

View source: R/RasperGade_global_ancestral_state.R

globalReconstructionWithPER Documentation

Predict global ancestral state under the pulsed evolution model

Description

Predict global ancestral state under the pulsed evolution model given a phylogeny, known tip states, and model parameters

Usage

globalReconstructionWithPE(
  FMR,
  add.epsilon = TRUE,
  laplace = FALSE,
  numApprox = 1,
  margin = 1e-06,
  numCores = 1,
  asymptotic = 5
)

Arguments

FMR

the returned data structure from function fullMarginalReconstructionWithPE

add.epsilon

logical, if true, time-independent variation is added to the variance in the data frame

laplace

logical, if true, Laplace distribution is used for time-independent variation

numApprox

the number of normal distributions to approximate the Laplace distribution

margin

the total probability mass that the number of jumps omitted in a compound Poisson process

numCores

the number of cores to run in parallel

asymptotic

the threshold of expected number of jumps on a branch beyond which normal distribution is assumed

Value

a data frame listing the means and variances of the ancestral states, and a list that describes the detailed error distribution of each ancestral state


wu-lab-uva/RasperGade documentation built on June 24, 2022, 2:47 p.m.