-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMCMC_Simulation.Rev
More file actions
22 lines (16 loc) · 928 Bytes
/
MCMC_Simulation.Rev
File metadata and controls
22 lines (16 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
################################################################################
#
# RevBayes Example: Bayesian model testing using posterior predictive simulation
#
# authors: Lyndon M. Coghill, Sebastian Hoehna and Jeremy M. Brown
#
################################################################################
source( model_file_name )
mni = 0
monitors[++mni] = mnModel(filename="output_" + model_name + "/" + analysis_name + "_posterior.log",printgen=50, separator = TAB)
monitors[++mni] = mnFile(filename="output_" + model_name + "/" + analysis_name + "_posterior.trees",printgen=50, separator = TAB, phylogeny)
monitors[++mni] = mnScreen(printgen=1000, TL)
monitors[++mni] = mnStochasticVariable(filename="output_" + model_name + "/" + analysis_name + "_posterior.var",printgen=50)
mymcmc = mcmc(mymodel, monitors, moves, nruns=2)
#mymcmc.burnin(generations=10000,tuningInterval=10)
mymcmc.run(generations=50000)