powered by
Calculate log of multinomial coefficient
log_multinom_coef(x, sumx)
The vector of log multinomial coefficients
Vector of observed counts in each cell
Total count
S0 <- matrix(sspace_multinom(4, 6), ncol = 4, byrow = TRUE) logC0<- apply(S0,1,log_multinom_coef,sumx=6)
Run the code above in your browser using DataLab