extract_tidy: Extract posterior draws from a stanfit

Description Usage Arguments Value

View source: R/extract.R

Description

Extracts the posterior draws excluding warmup. Formats the results into a tidy tibble.

Usage

1
extract_tidy(f, ..., with_div = FALSE, with_max_tree = FALSE)

Arguments

f

An object of class stanfit.

...

The names of the parameters to be extracted. If empty, all the parameters are extracted.

with_div

Should divergence information be included? Defaults to FALSE.

with_max_tree

Should max treedepth information be included? Defaults to FALSE.

Value

A tibble with d+3 columns where d is the maximum dimensionality of the extracted parameters.


paasim/stanutils documentation built on July 19, 2019, 12:47 a.m.