thinner: Thin iterations.

View source: R/MCMC.R

thinnerR Documentation

Thin iterations.

Description

Randomly thin iterations by a given proportion, for example if autocorrelation is visible within the MCMC series.

Usage

thinner(proportion = 0.1, set = get("info"), write = TRUE)

Arguments

proportion

Proportion of iterations to remove. Should be between 0 and 1. Default proportion=0.1.

set

Detailed information of the current run, stored within this session's memory as variable info.

write

Whether or not to write the changes to the output file. Defaults to TRUE.

Details

From all iterations, a proportion is removed with to-be-removed iterations sampled randomly among all iterations.

Value

NA

Author(s)

Maarten Blaauw, J. Andres Christen

Examples


  Bacon(ask=FALSE, coredir=tempfile())
  nrow(info$output)
  thinner(.2)
  nrow(info$output)



rbacon documentation built on July 26, 2023, 5:35 p.m.