20.16 配对样本的检验

配对样本和单样本的等价转化

20.16.1 配对比例检验 pairwise.prop.test

配对数据的比例检验

Pairwise comparisons for proportions

Calculate pairwise comparisons between pairs of proportions with correction for multiple testing

usage(pairwise.prop.test)
pairwise.prop.test(x, n, p.adjust.method = p.adjust.methods, ...)

20.16.2 配对 t 检验 pairwise.t.test

Calculate pairwise comparisons between group levels with corrections for multiple testing

usage(pairwise.t.test)
pairwise.t.test(x, g, p.adjust.method = p.adjust.methods, pool.sd = !paired,
    paired = FALSE, alternative = c("two.sided", "less", "greater"), ...)

谢益辉以配对组 t 检验谈 Cohen’s d

pairwise.t.test(x = sleep$extra, g = sleep$group, paired = T)
## 
##  Pairwise comparisons using paired t tests 
## 
## data:  sleep$extra and sleep$group 
## 
##   1     
## 2 0.0028
## 
## P value adjustment method: holm

成对的 t 检验

20.16.3 配对 Wilcoxon 检验 pairwise.wilcox.test

Pairwise Wilcoxon Rank Sum Tests 配对的 Wilcoxon 秩和检验

Calculate pairwise comparisons between group levels with corrections for multiple testing.

usage(pairwise.wilcox.test)
pairwise.wilcox.test(x, g, p.adjust.method = p.adjust.methods, paired = FALSE,
    ...)

20.16.4 配对样本相关性检验 cor.test

配对样本的相关性检验:Pearson’s 相关系数

Test for association between paired samples, using one of Pearson’s product moment correlation coefficient,

Kendall’s \(\tau\) 检验或者 Spearman’s \(\rho\) 检验.

usage(cor.test)
cor.test(x, ...)

参考文献

McLeod, A. I. 2011. Kendall: Kendall Rank Correlation and Mann-Kendall Trend Test. http://www.stats.uwo.ca/faculty/aim.
Savicky, Petr. 2014. Pspearman: Spearman’s Rank Correlation Test. https://CRAN.R-project.org/package=pspearman.
Wheeler, Bob. 2020. SuppDists: Supplementary Distributions. https://CRAN.R-project.org/package=SuppDists.