Hi,
can someone explain to me why p-values for a correlation test (t-test) and a chi-square test on the same set of data do not return the same p-values? Computing phi and r returns the same values, but the p-value for the t-test for the correlation is different from the chi-square test (or fisher z-test). Values are perfectly correlated but p-values for chisquare tests are always larger.
Here is reproducible r-code (psych package needed):
set.seed(1)
n