traces function

Traces

Traces

Retrieve the history of an iterative calculation.

## S4 method for signature 'mif2d_pomp' traces(object, pars, transform = FALSE, ...) ## S4 method for signature 'mif2List' traces(object, pars, ...) ## S4 method for signature 'abcd_pomp' traces(object, pars, ...) ## S4 method for signature 'abcList' traces(object, pars, ...) ## S4 method for signature 'pmcmcd_pomp' traces(object, pars, ...) ## S4 method for signature 'pmcmcList' traces(object, pars, ...)

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

Returns

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.

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()

  • Maintainer: Aaron A. King
  • License: GPL-3
  • Last published: 2025-01-08