Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

GeneralModel-class

No Intitialization function for this General class for model input


Description

This is the general model class, from which all other specific models for involving BUGS (the software) for computing result. It inherits all slots from AllModels

Details

The datamodel must obey the convention that the data input is called exactly 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.

Slots

datamodel

a function representing the BUGS data model specification (see the details above)

priormodel

a function representing the BUGS prior specification (see the details above)

modelspecs

a function computing the list of the data model and prior model specifications that are required for fully specifying them (e.g. prior parameters, reference dose, etc.), based on the data slots that are then required as arguments of this function. This will then be passed to BUGS for the computations.

init

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 then required as arguments of this function

sample

names of all parameters from which you would like to save the MCMC samples.

See Also


crmPack

Object-Oriented Implementation of CRM Designs

v1.0.0
GPL (>= 2)
Authors
Daniel Sabanes Bove [aut], Wai Yin Yeung [aut], Giuseppe Palermo [aut, cre], Thomas Jaki [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.