Learn R Programming

pomp (version 6.3)

traces: Traces

Description

Retrieve the history of an iterative calculation.

Usage

# 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, ...)

Value

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.

Arguments

object

an object of class extending ‘pomp’, the result of the application of a parameter estimation algorithm

pars

names of parameters

transform

logical; should the traces be transformed back onto the natural scale?

...

ignored or passed to the more primitive function

Details

Note that pmcmc does not currently support parameter transformations.

See Also

Other extraction methods: coef(), cond_logLik(), covmat(), eff_sample_size(), filter_mean(), filter_traj(), forecast(), logLik, obs(), pred_mean(), pred_var(), saved_states(), spy(), states(), summary(), time(), timezero()