to_stan_array: Collapse long-form array of posterior sample into short-form

View source: R/to_stan_array.R

to_stan_arrayR Documentation

Collapse long-form array of posterior sample into short-form

Description

Collpases the long-form array created by extract_n_combine into the array form that is created when calling stan::extract on a stanfit object with the options permute = FALSE and inc_warmup = FALSE.

Usage

to_stan_array(x)

Arguments

x

an array created by calling extract_n_combine

Value

the function returns a reshaped array which is callable by rstan::monitor or array_traceplot


baruuum/relabelKL documentation built on Feb. 1, 2024, 12:23 a.m.