BayesCal | R Documentation |
De calculation using gibbs sampler (WinBUGS code call)
BayesCal(
Sn,
ph,
n.chains = 1,
n.iter = 2000,
codaPkg = FALSE,
n.thin = max(1, floor(n.chains * (n.iter - n.burnin)/1000)),
n.burnin = n.iter/2,
debug = FALSE,
...
)
Sn |
[list] (**required**) efficiencies S table (see Sn function) |
ph |
[numeric] (**required**): selected preheat |
n.chains |
[numeric] (**with default value**) number of Markov chains (default: 1) |
n.iter |
number of total iterations per chain (including burn in; default: 2000) |
codaPkg |
logical; if |
n.thin |
thinning rate. Must be a positive integer. Set
|
n.burnin |
length of burn in, i.e. number of iterations to
discard at the beginning. Default is |
debug |
if |
... |
further arguments that will be passed to the function BayesCal |
WinBUGS simulation results (see R2WinBUGS::bugs help page)
data(Anatolian2, envir = environment())
file<-Anatolian2$FILE
## Not run:
## You may need to edit "bugs.directory",
## also you need write access in the working directory:
BayesCal(Sn(file,ech=1,OSL=2,Dose=c(0,200,250,300,0,200)),ph=c(1,2,3,4),
debug=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.