Two teams of researchers have each developed a treatment against atypical pneumonia. The effectiveness of these two treatments is compared by administering them to two separate groups of patients chosen at random from the victims of this disease. Group 1 comprises 45 individuals while group 2 comprises 35. We observed 34 cures in the first group and 28 in the second group.
What is the observed threshold (p-value) of this two-tailed test?
I found 0.34 here but I am really not sure.
This is a test to compare to proportions. Usually, the test uses a normal approximation for sufficiently large samples, which you have. There are several formulas for the z statistic, some using a pooled estimate for the common proportion (under $H_0)$ and some estimating proportions separately.
Here is output for the
prop.testin R:The P-value is 0.6368 for this version of the test. Thus the null hypothesis is not rejected at the 5% level of significance. [This version of the test gives a chi-squared statistic, which is the square of the relevant z-statistic.]
Here is the version of the test implemented in a recent release of Minitab.
I suspect that your P-value 0.34 is for a one-sided test. (If I do the appropriate one-sided test in R, I get P-value 0.317.) Without knowing the formula for your z-statistic, I can't say for sure how you got your P-value.