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 |
params |
optional, character vector for model parameters to monitor. |
inits |
initial values ( |
multiply |
optional, argument passed to
|
unchanged |
optional, argument passed to
|
update |
optional, argument passed to
|
updatefun |
optional, argument passed to
|
initsfun |
optional, argument passed to
|
flavour |
optional, argument passed to
|
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")