mcmc_to_dt_stan.Rd
MCMC tidiers (draft) for STAN
mcmc_to_dt_stan(stan_model)
stan_model | a stan model |
---|
a tidy dataframe
# 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) # }