# Using the MCMC ------------------------------------------------------------
# \donttest{
set.seed(1233)
# Simulating a tree
tree <- sim_tree(200)
# Simulating functions
atree <- raphylo(
tree = tree,
psi = c(.01, .03),
mu_d = c(.05, .02),
Pi = .5
)
# Running the MCMC
set.seed(1231)
ans_mcmc <- aphylo_mcmc(
atree ~ mu_d + psi + eta + Pi,
control = list(nsteps = 2e5, burnin=1000, thin=200)
)
# }
Run the code above in your browser using DataLab