stan2mcmc | R Documentation |
Converts a stanfit
object into a mcmc
object for easier analysis.
stan2mcmc(stanFit)
stanFit |
a |
The output can be analyzed as a mcmc
object with the functions from the coda
package. NOTE: The resulting MCMC object does not contain warm-up samples and is already thinned.
A MCMC object with a list of relevant parameters.
Craig Wang
data(epgs)
## apply zero-infation model for the paired design
model <- fecr_stan(epgs$before, epgs$after, rawCounts = FALSE,
indEfficacy = FALSE, preCF = 10,
paired = TRUE, zeroInflation = TRUE)
samples <- stan2mcmc(model$stan.samples)
summary(samples)
plot(samples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.