View source: R/RasperGade_reconstruction.R
marginalReconstruction | R Documentation |
Reconstruct marginal ancestral state using immediate descendants under BM or pulsed evolution model
marginalReconstruction(x, l) marginalReconstructionWithPE( x, l, lambdas, sizes, sigma, epsilons, margin = 1e-06, numCores = 1, asymptotic = 5 )
x |
vector of means of mixed normal distributions |
l |
vector of standard deviations of mixed normal distributions |
lambdas |
vector of jump frequencies, has the same length as the number of compound Poisson processes |
sizes |
vector of variances of trait change per jump, has the same length as the number of compound Poisson processes |
sigma |
rate of BM, has a length of 1 |
epsilons |
vector of uncertainty not explained by the branches, has the same length as the number of immediate descendants |
margin |
total probability mass of the number of jump not taken into account per compound Poisson process |
numCores |
number of cores to use |
asymptotic |
threshold of expected number of jumps beyond which the trait change is assumed to be normal |
marginalReconstruction
returns a vector of the mean variance and the scaling factor
marginalReconstructionWithPE
returns a list of the mean, variance and a data frame of the normal mixture
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.