GeneralModel
is a general model class, from which all other specific
model-like classes inherit. The GeneralModel
class inherits from
AllModels
.
datamodel
(function
)
a function representing the JAGS
data model
specification.
priormodel
(function
)
a function representing the JAGS
prior
specification.
modelspecs
(function
)
a function computing the list of the data
model and prior model specifications that are required to be specified
completely (e.g. prior parameters, reference dose, etc.), based on the data
slots that are required as arguments of this function.
init
(function
)
a function computing the list of starting values
for parameters required to be initialized in the MCMC sampler, based on the
data slots that are required as arguments of this function.
sample
(character
)
names of all parameters from which you would
like to save the MCMC samples.
The datamodel
must obey the convention that the data input is
called exactly in the same way as in the corresponding data class.
All prior distributions for parameters should be contained in the
model function priormodel
. The background is that this can
be used to simulate from the prior distribution, before obtaining any data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.