For a school research project, I have been instructed to run a large number of tests comparing the proportions of different groups. (Like this, except Statistica will give me a p outright.) The process is laborious and I would like to automate it. I would however need the formula for this test, and internet searches have turned up only inconsistent and unhelpful results.
Is the formula especially complex? Am I missing some important point?