stan2list: Convert STAN posterior to list

View source: R/stan2list.R

stan2listR Documentation

Convert STAN posterior to list

Description

Convert 'stan' posterior to named list of vectors or arrays.

Usage

stan2list(x, collapse.chains = TRUE)

Arguments

x

list of class 'stan'. The output from a call to stan.

collapse.chains

return array with dimension for each chain?

Note

If collapse.chains = TRUE, the last dimension of arrays will always be samples from the posterior. If collapse.chains = FALSE, the last dimension of arrays will be individual chains, and the one prior to that will be samples from the posterior for each chain.

See Also

aperm to transpose the array if necessary. as.data.frame.table to convert arrays to data.frames.


swfscMisc documentation built on April 3, 2025, 6:08 p.m.