# NOT RUN {
## Simulate some allele frequencies:
freqs <- structure(replicate(10, { g = rgamma(n = 10, scale = 4, shape = 3);
g/sum(g)
},
simplify = FALSE), .Names = paste('locus', 1:10, sep = '.'))
## Compute \eqn{\Pr(N(m = 3) = n)}, \eqn{n = 1,\ldots,2 * L *m}, where \eqn{L = 10}
## here
Pnm_all(m = 2, theta = 0, freqs)
## Same, but locuswise results
Pnm_all(m = 2, theta = 0, freqs, locuswise = TRUE)
# }
Run the code above in your browser using DataLab