Description Usage Arguments Value Examples
View source: R/Function_ConductSimExperiment_OU_ModelTest.R
This function returns a matrix.SimulationResults for the simulation results
1 2 3 4 | Function_ConductSimExperimentOU_ModelTestBM_OU(
list.Model_Simulation_OU,
numeric.NumberOfReps
)
|
list.Model_Simulation_OU |
List containing components of simulation model |
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 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | ################
# Load depends #
################
#library(ape)
#library(phytools)
#library(geiger)
#library(vioplot)
#library(gaussDiff)
#library(MASS)
##########################
# Build simulation model #
##########################
phylogeny.RandomTree <- pbtree(b = 1, d = 0, n = 50)
vector.Model_Simulation_Theta <- c(1, 10)
names(vector.Model_Simulation_Theta) <- c("Sig2", "alpha")
list.Model_Simulation_OU <- list(handle.Phylogeny = phylogeny.RandomTree,
string.Model = "OU",
vector.Z = rep(0, length(phylogeny.RandomTree$tip.label)),
vector.Theta = vector.Model_Simulation_Theta)
handle.Sim_Results <- Function_ConductSimExperimentOU_ModelTestBM_OU(list.Model_Simulation_OU = list.Model_Simulation_OU, numeric.NumberOfReps = 5)
###################
# Compare this to #
###################
##########################
# Build simulation model #
##########################
phylogeny.RandomTree <- pbtree(b = 1, d = 0, n = 100)
vector.Model_Simulation_Theta <- c(1, 0.0001)
names(vector.Model_Simulation_Theta) <- c("Sig2", "alpha")
list.Model_Simulation_OU <- list(handle.Phylogeny = phylogeny.RandomTree,
string.Model = "OU",
vector.Z = rep(0, length(phylogeny.RandomTree$tip.label)),
vector.Theta = vector.Model_Simulation_Theta)
handle.Sim_Results <- Function_ConductSimExperimentOU_ModelTestBM_OU(list.Model_Simulation_OU = list.Model_Simulation_OU, numeric.NumberOfReps = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.