R code for the "Bayesian Multinomial Test" implemented in JASP
Dear JASP team and all,
I recently used the "Bayesian Multinomial Test" under the "Frequencies" tab to compare whether sex ratio in different samples different from each other. Because we have many groups and we are interested in whether one specific group's sex ratio is different from all the remaining groups. To do that in JASP, I have to click the buttons for many times. So, I am curious how to implement this test in R code.
I click the JASP help for this analysis, which shows that the r packages used are ggplot and stats, but I did not find a function in stats package could do this test. It'll be very helpful if anyone can give me some hint.
Thanks in advance.