The Dirichlet-Multinomial distribution is given by (Mosimann, J. E. (1962); Tvedebrink, T. (2010)),
$$\textbf{P}\left ({\textbf{X}_i}=x_{i};\left \{ \pi_j \right \},\theta\right )=\frac{N_{i}!}{x_{i1} !,\ldots,x_{iK} !}\frac{\prod_{j=1}^K \prod_{r=1}^{x_{ij}} \left \{ \pi_j \left ( 1-\theta \right )+\left ( r-1 \right )\theta\right \}}{\prod_{r=1}^{N_i}\left ( 1-\theta\right )+\left ( r-1 \right) \theta}$$
where \(\textbf{x}_{i}= \left [ x_{i1}, \ldots, x_{iK} \right ]\) is the random vector formed by K taxa (features) counts (RAD vector), \(N_{i}= \sum_{j=1}^K x_{ij}\) is the total number of reads (sequence depth), \( \left\{ \pi_j \right\}\) are the mean of taxa-proportions (RAD-probability mean), and \(\theta\) is the overdispersion parameter.
Note: Though the test statistic supports an unequal number of reads across samples, the performance has not yet been fully tested.