MCMC tidiers (draft) for STAN

mcmc_to_dt_stan(stan_model)

Arguments

stan_model

a stan model

Value

a tidy dataframe

Examples

# NOT RUN {
#### example 1
library(rstan)
scode <- "
parameters {
real y[2];
}
model {
y[1] ~ normal(0, 1);
y[2] ~ double_exponential(0, 2);
}
"
fit1 <- stan(model_code = scode, iter = 10, verbose = FALSE)
 mcmc_to_dt_stan(fit1)

# }