Skip to contents

Select balanced posterior draws from a model grid

Usage

opal_grid_draws(grid, n_per_model, seed = 123L)

Arguments

grid

An opal_grid with accepted posteriors in every member.

n_per_model

Number of draws selected without replacement per model.

seed

Reproducible selection seed, restored on exit.

Value

A table of model, chain, iteration, retained draw index, and equal model weights. Selection is balanced across chains within each model, with any remainder allocated to the first chains. Models are not silently dropped, and equal model weighting is an explicit assumption.

See also