Obtain MU_theta draws
ec_draws_MU(draws)
A list, 'echoice2' draws object
A tibble, long format, draws of MU
ec_draws_screen()
to obtain screening parameter draws (where applicable),
ec_trace_MU()
to generate a traceplot of MU_theta draws
data(icecream)
#run MCMC sampler (use way more than 20 draws for actual use
icecream_est <- icecream %>% dplyr::filter(id<50) %>% vd_est_vdm(R=20)
#> Using 16 cores
#> MCMC in progress
#> MCMC complete
#> Total Time Elapsed: 0.00 minutes
ec_draws_MU(icecream_est)
#> Warning: The `x` argument of `as_tibble.matrix()` must have unique column names if
#> `.name_repair` is omitted as of tibble 2.0.0.
#> ℹ Using compatibility `.name_repair`.
#> ℹ The deprecated feature was likely used in the echoice2 package.
#> Please report the issue at <https://github.com/ninohardt/echoice2/issues>.
#> # A tibble: 42 × 3
#> draw attribute_level value
#> <int> <chr> <dbl>
#> 1 1 int -0.0421
#> 2 1 Brand:BlueBell -0.0452
#> 3 1 Brand:BlueBunny -0.00803
#> 4 1 Brand:Breyers -0.0148
#> 5 1 Brand:Dryers 0.00637
#> 6 1 Brand:HaagenDa 0.0932
#> 7 1 Brand:Store 0.162
#> 8 1 Flavor:ChocChip 0.0201
#> 9 1 Flavor:ChocDough -0.117
#> 10 1 Flavor:CookieCream 0.0860
#> # … with 32 more rows