covmat: Estimate a covariance matrix from algorithm traces

Description Usage Arguments Value See Also

Description

A helper function to extract a covariance matrix.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## S4 method for signature 'pmcmcd_pomp'
covmat(object, start = 1, thin = 1,
  expand = 2.38, ...)

## S4 method for signature 'pmcmcList'
covmat(object, start = 1, thin = 1,
  expand = 2.38, ...)

## S4 method for signature 'abcd_pomp'
covmat(object, start = 1, thin = 1,
  expand = 2.38, ...)

## S4 method for signature 'abcList'
covmat(object, start = 1, thin = 1,
  expand = 2.38, ...)

## S4 method for signature 'probed_pomp'
covmat(object, ...)

Arguments

object

an object extending ‘pomp’

start

the first iteration number to be used in estimating the covariance matrix. Setting thin > 1 allows for a burn-in period.

thin

factor by which the chains are to be thinned

expand

the expansion factor

...

ignored

Value

When object is the result of a pmcmc or abc computation, covmat(object) gives the covariance matrix of the chains. This can be useful, for example, in tuning the proposal distribution.

When object is a ‘probed_pomp’ object (i.e., the result of a probe computation), covmat(object) returns the covariance matrix of the probes, as applied to simulated data.

See Also

MCMC proposals.


kidusasfaw/pomp documentation built on May 20, 2019, 2:59 p.m.