I have an analysis question that I need some help on. I received an analysis request to identify events that have statistically different frequencies between two groups.
For example, assume I have group A and group B and in each group, there are events that are either shared or unique to each group. And each event is found to be happening at a certain frequency as denoted in parenthesis below:
Group A: e1 (0.1), e2 (0.03), e3 (0.9), e6 (0.01),e10 (0.02),e11 (0.95)
Group B: e1 (0.2), e2 (0.02), e7 (0.01),e8 (0.02), e12 (0.03)
So the end goal is to identify in this hypothetical case, that event e3 is the significantly different event(occurring at a high frequency in Group A and not at all in Group B) with a p-value and all other events are not significantly different between Group A and Group B. For example, e2 is occurring in both group but at similar frequency.
I was suggested by a friend that binomial model might work but I couldn't figure out how to implement it in R.
Could anyone help me come up with a solution? Thanks!