Function_FitCont_TreeSet_BM: Function_FitCont_TreeSet_BM: function to estimate BM model...

Description Usage Arguments Value Examples

View source: R/Function_FitCont_TreeSet_BM.R

Description

This function returns a matrix of fitted model parameters (assuming a BM) for a given set of trees

Usage

1
Function_FitCont_TreeSet_BM(phylogeny.TreeSet, vector.InputData)

Arguments

phylogeny.TreeSet

List of phylogenetic trees

vector.InputData

Vector of continuous trait data

Value

vector.Distances Vector containing the distances computed between the two focal tree models

Examples

 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)

radamsRHA/PRDATR documentation built on Dec. 25, 2021, 11:44 a.m.