(10)
|
94 |
pi.tl <- rdirichlet(n = 1, alpha = colSums(Cl.tl) + dirich.prior) |
(11)
|
97 – 101 |
pkj.tl[g, ] <- rbeta(K, shapel = alpha + colSums(Cl.tl [, g] * y), shape2 = beta + colSums(Cl.tl [, g] * (1 - y) ) |
(12)
|
85 – 87 |
Cl.tl <- apply(Clp.tl, 1, function(prob) { rmultinom(n = 1, size = 1, prob = prob) }) |