Description Usage Arguments Value Usage notes See Also
Fit a Poisson QTL model to rate or event count data
1 2 |
e |
a vector containing the number of events in this group |
t |
a vector containing the total exposure in this group |
modelString |
the string containing the JAGS model definition |
inits |
a list containing the initial values of the hyperparameters. See Usage Notes below. |
autoRun |
Logical. If |
raw |
logical if |
... |
passed to JAGS |
Either the mcmc
(or mcmc.list
) object returned by
JAGS or a tibble containing the MCMC samples from the posterior
distribution
If modelString == NULL
, the model string is obtained by calling
getModelString("binary")
.
If raw == FALSE
, the chain from which each observation is drawn is
indicated by Chain
and the dataset is transformed into tidy format,
with the model parameter indicated by Parameter
.
The inits
parameter can be used to define the number of chains created
by JAGS. If a list of lists, the number of elements in the
outer list defines the number of chains and the elements of each sub-list
define the initial value for each hyperparameter. For example, the default
value of inits
requests two chains. The initial values of a
and b
in the first chain are 2 and 4, respectively. In the second
chain, the corresponding values are 9 and 1. If the MCMC model has converged
and is stationary, the initial values of the hyperparameters will be
irrelevant. To check for convergence, it is necessary - but not sufficient
- to obtain more than one chain and to use different initial values for each
chain.
Note that some parameters to run.jags
are incompatible with
autorun.jags
and will therefor cause an error when passed in
...
unless autoRun
is set to FALSE
. These parameters
include samples
and burnin
and will result in an error similar
to "Error in extend.jags(runjags.object, add.monitor = add.monitor,
drop.monitor = drop.monitor,
: formal argument "burnin" matched by multiple
actual arguments".
fitBinomialModel
, fitBinaryModel
,
fitTteModel
, fitNormalModel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.