set.seed(1)
ploidy <- 8
## Simulate under the alternative
q <- stats::runif(ploidy + 1)
q <- q / sum(q)
nvec <- c(stats::rmultinom(n = 1, size = 100, prob = q))
gl <- simgl(nvec)
gibbs_gl_alt(gl = gl, beta = rep(1, ploidy + 1), lg = TRUE)
Run the code above in your browser using DataLab