Extract draws from a stanfit object and convert them into lists.
The function rstan::extract() returns the draws for a given parameter as an array. This function
calls rstan::extract() to extract the draws from a stanfit object
and then convert the arrays into lists.
Value
A named list of length 2 containing:
beta: a list of length equal ton_samplescontaining the draws from the posterior distribution of the regression coefficients.sigma: a list of length equal ton_samplescontaining the draws from the posterior distribution of the covariance matrices. Each element of the list is a list with length equal to 1 ifsame_cov = TRUEor equal to the number of groups ifsame_cov = FALSE.
