thin_dt: thin_dt

Description Usage Arguments Value Examples

View source: R/thin_dt.R

Description

post-hoc thinning of MCMC chains which have been converted to a data.table

Usage

1
thin_dt(dt, thin = 1)

Arguments

dt

an object of class "data.table" returned from mcmc_to_dt

thin

thinning interval

Value

a data.table dataframe

Examples

1
2
3
4
5
6
library(coda)
data(line)
mcmc_dt <- mcmc_to_dt(line)
thin_dt(mcmc_dt, thin = 10)
thin_dt(mcmc_dt, thin = 2)
thin_dt(mcmc_dt, thin = 20)

njtierney/mmcc documentation built on Oct. 5, 2021, 12:14 a.m.