iSample2time: iSample2time

Description Usage Arguments Details Author(s) See Also Examples

View source: R/S3twDEMC.R

Description

Convert sample number to time given the thinning interval

Usage

1
iSample2time(iSample, thin = 1)

Arguments

iSample

integer vector: indices of the samples in recorded states

thin

integer scalar: thinning interval

Details

Sample 1 corresponds to time zero After first generation, the time sample 2 corresponds to thin

Author(s)

Thomas Wutzler

See Also

time2iSample getNGen.twDEMC ,subChains.twDEMC ,twDEMCBlockInt

Examples

1
2
3
4
5
iSample <- 1:13
structure( iSample2time(iSample) , names=iSample )
structure( iSample2time(iSample, thin=10) , names=iSample )
structure( iSample2time(iSample, thin=4) , names=iSample )
structure( iSample2time(iSample, thin=8) , names=iSample )

twDEMC documentation built on May 31, 2017, 3:44 a.m.