makeDcFit {dcmle}R Documentation

Data object creators

Description

Creator functions for data types used in the dcmle package.

Usage

makeGsFit(data, model, params = NULL, inits = NULL, flavour)

makeDcFit(data, model, params=NULL, inits = NULL,
    multiply = NULL, unchanged = NULL, update = NULL,
    updatefun = NULL, initsfun = NULL, flavour)

Arguments

data

usually a named list with data.

model

BUGS model (function, character vector or a custommodel object). The argument is coerced into a custommodel object.

params

optional, character vector for model parameters to monitor.

inits

initial values (NULL, list or function).

multiply

optional, argument passed to dc.fit.

unchanged

optional, argument passed to dc.fit.

update

optional, argument passed to dc.fit.

updatefun

optional, argument passed to dc.fit.

initsfun

optional, argument passed to dc.fit.

flavour

optional, argument passed to dc.fit.

Details

'gsFit' (after BU*GS*/JA*GS*) is a basic object class representing requirements for the Bayesian MCMC model fitting. The 'dcFit' object class extends 'gsFit' by additional slots that are used to fine tune how data cloning is done during fitting process. Both 'gsFit' and 'dcFit' represent prerequisites for model fitting, but do not containing any fitted parts. Creator functions makeGsFit and makeDcFit are available for these classes. See dcmle-package help page for usage of creator functions.

The default flavour is stored in getOption("dcmle.flavour") with value "jags". It can be changed as options("dcmle.flavour"="bugs") if required.

Value

makeGsFit returns a 'gsFit' object (gsFit-class).

makeDcFit returns a 'dcFit' object (dcFit-class).

Author(s)

Peter Solymos

See Also

gsFit-class, dcFit-class, dcmle

Examples

showClass("gsFit")
new("gsFit")
showClass("dcFit")
new("dcFit")

[Package dcmle version 0.4-1 Index]