data(icecream)
#run MCMC sampler (use way more than 50 draws for actual use)
icecream_est <- icecream %>% dplyr::filter(id<100) %>%
vd_est_vdm(R=100, keep=1, error_dist = "Normal")
#generate error realizations
errs<- ec_gen_err_normal(icecream %>% dplyr::filter(id<100), icecream_est, seed=123)
Run the code above in your browser using DataLab