Retrieve the history of an iterative calculation.
# S4 method for mif2d_pomp
traces(object, pars, transform = FALSE, ...)# S4 method for mif2List
traces(object, pars, ...)
# S4 method for abcd_pomp
traces(object, pars, ...)
# S4 method for abcList
traces(object, pars, ...)
# S4 method for pmcmcd_pomp
traces(object, pars, ...)
# S4 method for pmcmcList
traces(object, pars, ...)
When object
is the result of a mif2
calculation,
traces(object, pars)
returns the traces of the parameters named in pars
.
By default, the traces of all parameters are returned.
If transform=TRUE
, the parameters are transformed from the natural scale to the estimation scale.
When object
is a ‘abcd_pomp’, traces(object)
extracts the traces as a coda::mcmc
.
When object
is a ‘abcList’, traces(object)
extracts the traces as a coda::mcmc.list
.
When object
is a ‘pmcmcd_pomp’, traces(object)
extracts the traces as a coda::mcmc
.
When object
is a ‘pmcmcList’, traces(object)
extracts the traces as a coda::mcmc.list
.
an object of class extending ‘pomp’, the result of the application of a parameter estimation algorithm
names of parameters
logical; should the traces be transformed back onto the natural scale?
ignored or passed to the more primitive function
Note that pmcmc
does not currently support parameter transformations.