thin.chains: Thin chains in a fitted evolving rates model

View source: R/out_chain.management.R

thin.chainsR Documentation

Thin chains in a fitted evolving rates model

Description

This function thins all chains from the output of the function fit.evorates by keeping only every thinth iteration.

Usage

thin.chains(fit, thin = 2, simplify = TRUE)

Arguments

fit

An object of class "evorates_fit", the output of a call to fit.evorates.

thin

Details

Keep in warmup counts form the first iteration. For example, if fit has 2000 iterations with the first 1000 as warmup, you would set warmup to 1500 to keep the last 500 iterations.

Value

an object of class "evorates_fit". All previously-existing elements in fit will be included.

See Also

Other chain management: combine.chains(), exclude.warmup(), select.chains()

Examples

#requires example fitted model object
#keep every 3rd iteration
thin.chains(example.fit,3)



bstaggmartin/evorates documentation built on May 31, 2024, 5:56 a.m.