Description Usage Arguments Value Examples
View source: R/Function_FitCont_TreeSet_BM.R
This function returns a matrix of fitted model parameters (assuming a BM) for a given set of trees
1 | Function_FitCont_TreeSet_BM(phylogeny.TreeSet, vector.InputData)
|
phylogeny.TreeSet |
List of phylogenetic trees |
vector.InputData |
Vector of continuous trait data |
vector.Distances Vector containing the distances computed between the two focal tree models
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ################
# Load depends #
################
library(ape)
library(geiger)
library(gaussDiff)
#########################
# Simulate random trees #
#########################
handle.SimulatedRandomTrees <- rmtree(N = 10, n = 10)
vector.SimulatedDataset <- fastBM(tree = handle.SimulatedRandomTrees[[1]], a = 0, mu = 1)
handle.FittedPhylogeneticModels <- Function_FitCont_TreeSet_BM(phylogeny.TreeSet = handle.SimulatedRandomTrees, vector.InputData = vector.SimulatedDataset)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.