Usage
simtraits(ntaxa = 15, ntraits = 4, nreps = 1, nmissing = 0, tree, v, anc,
intraspecific, model="BM", parameters, nsim, return.type="data.frame")
Arguments
ntaxa
Either number of taxa (ntaxa) or a tree can be supplied.
ntraits
Number of traits to be simulated.
nreps
Number of replicates per trait per species to simulate.
nmissing
Number of randomly missing trait values.
tree
Either number of taxa (ntaxa) or a tree can be supplied.
v
Trait covariance (v) can be optionally supplied; otherwise off-diagonal elements are set to 0.8.
anc
Value for ancestral state at root node.
intraspecific
Optional value for within-species variance.
model
Model of evolution (default="BM"). Other options include "OUfixedRoot", "OUrandomRoot", "lambda", "kappa", "delta", "EB".
parameters
List of parameters for the model. alpha for the selection strength in the OU model, lambda, kappa, delta, or rate for the EB model.
nsim
Number of simulations to perform (default is 1)
return.type
Default is "data.frame". Can also specify "matrix" if nreps=1.