Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-ndraws

The number of posterior draws in a draws object.


Description

The number of posterior draws in a draws object.

Usage

.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.


loo

Efficient Leave-One-Out Cross-Validation and WAIC for Bayesian Models

v2.4.1
GPL (>= 3)
Authors
Aki Vehtari [aut], Jonah Gabry [cre, aut], Mans Magnusson [aut], Yuling Yao [aut], Paul-Christian Bürkner [aut], Topi Paananen [aut], Andrew Gelman [aut], Ben Goodrich [ctb], Juho Piironen [ctb], Bruno Nicenboim [ctb]
Initial release
2020-12-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.