rweights <- draw_beta_mixture_nsamples(
n = 50,
chips_mult = rbind(
c(0, 0, 0, 0, 2, 3, 3, 2, 0, 0),
c(0, 0, 0, 1, 2, 4, 2, 1, 0, 0),
c(0, 0, 0, 2, 2, 2, 2, 2, 0, 0)
),
expert_weight = rep(1/3, 3)
)
print(rweights)
if (FALSE) {
hist(rweights)
}
Run the code above in your browser using DataLab