Learn R Programming

BayesComm (version 0.1-2)

window.bayescomm: 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

"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

Value

A bayescomm object with windowed parameter chains.

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.

See Also

BC, window.mcmc

Examples

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

Run the code above in your browser using DataLab