I am trying to conduct a multinomial test in Python --the analogous in R would be:
library(XNomial)
xmulti(prfs, c(1/3, 1/3, 1/3), statName="Prob")
I am using the met module. However I get an exception. Here is the code:
prfs
Pref
A 8
B 21
C 31
import met
met.twosided_exact_likelihood(ref_obs = [1/3, 1/3, 1/3], site_obs = prfs.Pref/prfs.Pref.sum())
AttributeError: module 'met' has no attribute 'twosided_exact_likelihood'