window.bayescomm {BayesComm}R Documentation

Window bayescomm objects

Description

window.bayescomm is window function for bayescomm objects, it calls window.mcmc from the coda package. Parameter chains are subsetted by start and end and thinned by thin.

Usage

## S3 method for class 'bayescomm'
window(x, start = NULL, end = NULL, thin = 1, ...)

Arguments

x

a bayescomm object

start

start iteration

end

end iteration

thin

thinning interval

...

further arguments to pass to window.mcmc

Details

If start = NULL (default) the start is taken as the first iteration. If end = NULL (default) the end is taken as the final iteration. If thin = 1 (default) all iterations within the window are retained.

Value

A bayescomm object with windowed parameter chains.

See Also

BC, window.mcmc

Examples

m1 <- example(BC)[[1]]
m2 <- window(m1, 51, 150, 10) 

[Package BayesComm version 0.1-2 Index]