
135Exploratory Analysis and Introduction to Inferential Statistics
We obtain
> cor.test(x,y.u, method=”s”)
Spearman’s rank correlation rho
data: x and y.u
S = 3510, p-value = 0.2436
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
0.2191324
With p-value 0.24 we cannot reject H0 at a reasonable α. Therefore, we cannot assure that variables
are correlated.
> cor.test(x,y.r, method=”p”)
Pearson’s product-moment correlation
data: x and y.r
t = 25.6957, df = 28, p-value < 2.2e-16
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.9567998 0.9902815
sample estimates:
cor
0.9794479
With this very ...