dot-thin_draws: Thin a draws object

.thin_drawsR Documentation

Thin a draws object

Description

Thin a draws object

Usage

.thin_draws(draws, loo_approximation_draws)

## S3 method for class 'matrix'
.thin_draws(draws, loo_approximation_draws)

## S3 method for class 'numeric'
.thin_draws(draws, loo_approximation_draws)

## Default S3 method:
.thin_draws(draws, loo_approximation_draws)

Arguments

draws

A draws object with posterior draws.

loo_approximation_draws

The number of posterior draws to return (ie after thinning).

Details

This is a generic function to thin draws from arbitrary draws objects. The function is internal and should only be used by developers to enable loo_subsample() for arbitrary draws objects.

Value

A thinned draws object.


jgabry/loo documentation built on Nov. 26, 2024, 5:29 p.m.