dot-ndraws: The number of posterior draws in a draws object.

.ndrawsR Documentation

The number of posterior draws in a draws object.

Description

The number of posterior draws in a draws object.

Usage

.ndraws(x)

## S3 method for class 'matrix'
.ndraws(x)

## Default S3 method:
.ndraws(x)

Arguments

x

A draws object with posterior draws.

Details

This is a generic function to return the total number of draws from an arbitrary draws objects. The function is internal and should only be used by developers to enable loo_subsample() for arbitrary draws objects.

Value

An integer with the number of draws.


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