Learn R Programming

ouxy (version 2.1)

HyperParam: The range of parameters

Description

Set up range for parameters for next step

Usage

HyperParam(tree = tree, traitset = traitset)

Arguments

tree

An ape: tree object stored in phylo format

traitset

a dataframe that contains 3 traits

Value

A list of vectors of sample of model parameters, regression parameter and ancestral values.

Details

Function OUprior is called to compute the model estimate, then return the range for parameter estimate for next step analysis. The range is set to 3 times larger/smaller than the parameter estimates. Function regboundfcn is called to get the bound of regression parameter. The ancestral value (root) is computed for each traits in order to used for simulation in the four functions oubmbmTrait,ououbmTrait, oubmcirTrait and ououcirTrait.

Examples

Run this code
# NOT RUN {
## using coral dataset (running time more > 5 sec)
# }
# NOT RUN {
data(coral)
tree<-coral$tree
traitset<-coral$traitset
HyperParam(tree=tree,traitset=traitset)
# }

Run the code above in your browser using DataLab