I have two questions concerning proportions.
First, say I have one sample of 1000 units and 10 percent have the characteristic A while 8 percent have B - how would I test whether these two proportions are significantly different, is A actually more common than B? I understand that I can compute a z-test, but how would I calculate the standard error for this test?
What I can find (say, Agresti & Finlay) either seems to describe comparing a proportion in one sample to some population parameter my, or comparing proportions from two different samples – but in my case, I'm dealing with one sample only.
And more generally, is it correct that when comparing proportions I would use a z-test, not a t-test (if I'm wrong, how would I compute the standard error in a t-test?).
For any help, thanks in advance,