I have 2 populations which I want to test if the proportions between group A and B are the same for each location or not by using hypothesis testing. It's very much as this problem described here: Comparing multiple sample proportions between two groups. However in my case it's not between two independent groups but group B population is a subset of group A's. Can I still use the method described in the link or do I have to think differently? Is there a fallacy I am missing out here? My data looks like this:
Group A Group B
Location 1 20090 17
Location 2 24604 10
Location 3 12284 5
Location 4 14843 12
Location 5 20592 9
Location 6 8715 4
I am thinking because I have such a low count in group B, Fisher's exact test should be better suited here if I am gonna use something similar as the link.