restan
execution in function fitEmaxB
Set MCMC controls. Also control spread of initial parameter values.
mcmc.control(chains = 1, thin = 1,
warmup = 1000, iter = 3333* thin+warmup,
propInit = 0.50, seed = 12357, adapt_delta = 0.9)
Number of chains
Number of discarded sampled parameter values. warmup
and iter
include
thin
, so for example, to output 1000
samples, iter
must be
1000
times thin
.
See rstan
documentation for function sampling
.
See rstan
documentation for function sampling
.
Initial values for E0
and Emax
are derived from the prior mean plus/minus
propInit
times the prior SD. propInit
can be set to a small proportion if
very diffuse prior distributions are specified.
Seed passed to rstan
.
See rstan
documentation for function sampling
.