I have two independent populations with size n1=272 and n2=664. The number of successes are x1=4 and x2=6 respectively.
Is it statistically correct to use binom.dist() function to test the equality of two population proportions? In particular, can I obtain the p-value of the hypothesis test as follows:
or in general,