get_random_draw_indices: Get indices for random MCMC draws from stanfit

View source: R/get-info-from-NIW-IA-stanfit.R

get_random_draw_indicesR Documentation

Get indices for random MCMC draws from stanfit

Description

Returns 'ndraws' indices for random post-warmup MCMC draws (without replacement) from 'fit'.

Usage

get_random_draw_indices(fit, ndraws)

Arguments

fit

A stanfit object.

ndraws

Number of indices to be returned. Can't be larger than total number of post-warmup samples across all MCMC chains in 'fit'.

Value

A numeric vector.


hlplab/MVBeliefUpdatr documentation built on July 5, 2025, 6:42 a.m.