R中的统计检验输出了许多描述。虽然它们很有用,但我们如何才能输出或提取单个值呢?
> cor.test(x,y,method="spearman", exact=F)
Spearman's rank correlation rho
data: x and y
S = 12767993, p-value = 0.0001517
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
-0.188074
特别是,如何才能仅获得这些值0.0001517和-0.188074,以便我可以存储它们以供进一步分析?
https://stackoverflow.com/questions/6639424
复制相似问题