# Example: A model with less parameters
set.seed(1231)
x <- raphylo(20)
ans <- aphylo_mcmc(
x ~ psi + mu_d + mu_s,
control = list(nsteps = 1e3, burnin = 0)
)
# Creating the multivariate plot (using by default image)
plot_multivariate(
function(...) {
ans$fun(unlist(list(...)), priors = ans$priors, dat = ans$dat, verb_ans = FALSE)
},
sets = matrix(c("mu_d0", "mu_d1", "psi0", "psi1"), ncol=2),
params = ans$par
)
Run the code above in your browser using DataLab