Description Usage Arguments Value Examples
View source: R/synthetic_fxns.R
Plot Posterior Distributions for a Synthetic Example For each region we plot in blue the posterior density of R0 and of pC. In red we show the input value The entire history of the chain is used when showing the density. In the case of a coupled model we also compare the values for the saturation distance and the distance power (s_d and gamma respectively).
1 2 3 |
tab.fit |
The MCMC history of the fit |
tab.cpl |
MCMC history of the coupling parameters (if present) |
fit_par |
Parameter values used to create the synthetic profiles |
cpl_par |
Coupling parameter values used to create the synthetic profile |
mydata |
a list with all the data available for this run |
opt.list |
A logical list of all the parameters DICE recognizes and can optimize with TRUE/FALSE |
run.list |
a list with parameters used for the MCMC procedure |
imask |
An array of integers with +1/-1 values for parameters that are optimized (or not) |
ireal |
Integer - the MCMC chain number |
err Returns err = 0
1 2 | synthetic.compare{tab.fit = tab.fit, tab.cpl = tab.cpl, fit_par = save_fit_par, cpl_par = save_cpl_par,opt.list = opt.list,
run.list = run.list, mydata = mydata, imask = imask, ireal = 1}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.