Used as the default for n_draws in reconstruct_brmsfit() and reconstruct_sccomp() so callers don't have to supply a magic number. Falls back to 4000 when no MCMC metadata is present.

get_n_draws_from_fit(fit_structure)

Arguments

fit_structure

A brmsfit (or any object with attr(., "fit") pointing to a stanfit / CmdStanMCMC).

Value

An integer number of post-warmup draws across all chains.