test = FALSE
if(test){
data("Caprimulgidae")
sample_fraction = 0.61
sampler = fit_ClaDS(Caprimulgidae, sample_fraction, 1000, thin = 50,
file_name = NULL, model_id="ClaDS2", nCPU = 1)
plot_ClaDS_chains(sampler)
# continue the same run
sampler = fit_ClaDS(Caprimulgidae, sample_fraction, 50, mcmcSampler = sampler)
# plot the result of the analysis (saved in "Caprimulgidae_ClaDS2", after thinning)
data("Caprimulgidae_ClaDS2")
# plot the mcmc chains
plot_ClaDS_chains(Caprimulgidae_ClaDS2$sampler)
# extract the Maxima A Posteriori for each parameter
maps = getMAPS_ClaDS(Caprimulgidae_ClaDS2$sampler, thin = 1)
print(paste0("sigma = ", maps[1], " ; alpha = ",
maps[2], " ; epsilon = ", maps[3], " ; l_0 = ", maps[4] ))
# plot the infered branch specific speciation rates
plot_ClaDS_phylo(Caprimulgidae_ClaDS2$tree, maps[-(1:4)])
}
Run the code above in your browser using DataLab