runjags2list | R Documentation |
Convert runjags posterior to named list of vectors or arrays.
runjags2list(post, collapse.chains = TRUE)
post |
list of class 'runjags'. The output from a call to run.jags. |
collapse.chains |
return array with dimension for each chain? |
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.
aperm to transpose the array if necessary. as.data.frame.table to convert arrays to data.frames.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.