extract_treedepths: Extract tree depths from a variety of Stan packages

View source: R/stan-package-tools.R

extract_treedepthsR Documentation

Extract tree depths from a variety of Stan packages

Description

Extract tree depths from a variety of Stan packages

Usage

extract_treedepths(x, ...)

Arguments

x

A Stan MCMC model fit.

...

Arguments passed to S3 methods if applicable.

Value

A vector containing the tree depths per iteration.

Examples

## Not run: 
fit <- brms::brm(y ~ x, data = datalist)
extract_treedepths(fit)

## End(Not run)

tomshafer/tshfr documentation built on Sept. 27, 2022, 2:42 p.m.