I am not that used to searching the right test statistic, however, I have some basic knowledge about hypothese testing. My question is if there is a name/standart procedure in R for testing the population proportion of a control group compared to a treatment group.
In more detail:
- Controlgroup: Two answer options A1 and A2
- Treatmentgroup: Three answer options A1, A2 and A3
I want to test if the answer A3 can influence the observer to choose A2.
Define P := proportion of responses that choose A2.
- H0: P_c = P_t (P_c - P_t = 0)
- Ha: P_c < P_t (P_c - P_t < 0)
I would use something like example three on this page: https://courses.lumenlearning.com/introstats1/chapter/comparing-two-independent-population-proportions/ But my question is, is there a name/standart procedure in R for testing such a cenario? Can u help me to choose the correct testing method for this hypothesis?
Edit 16.03.20 17:34: Thanks to Dave's answer I tried the proportion test with the prop.test package:
I have two setups to test the same effect. For setup one I have C: 48/80 A2 and T: 60/85. For setup two I have: 45/80 A2 and T: 60/85. Setup one shows no significant difference (p-val=0.1028) where setup two shows significance (p-val=0.03992) with the prop.test.
Does someone have another test that I can use? Does someone know the uniform most powerful test for this scenario?