# NOT RUN {
data(Anolis_traits)
data(Anolis_tree)
## Create a jive object
my.jive <- make_jive(Anolis_tree, Anolis_traits[,-3],
model.priors = list(mean = "BM", logvar= c("OU", "root")))
## change starting values for the species means
my.jive$lik$init #default values
new.init <- rep(40,16)
my.jive <- control_jive(my.jive, level = "lik", intvar = "mean", initial.values = new.init)
my.jive$lik$init #mean initial values changed
## change hyperpriors for prior.mean
plot_hp(my.jive) #default values
new.hprior <- list(hpfun("Gamma", hp.pars = c(2,6)), hpfun("Uniform", c(20,80)))
my.jive <- control_jive(my.jive, level = "prior", intvar = "mean", hyperprior = new.hprior)
plot_hp(my.jive) #mean initial values changed
# }
Run the code above in your browser using DataLab