updated kolmogorov test to not break in R-devel 4.4
A package dedicated to running multiple statistical hypothesis tests on rows and columns of matrices.
Bartlett’s test on every column of iris dataset using Species as groups:
col_bartlett(iris[,-5], iris$Species)
obs.tot obs.groups var.pooled df statistic pvalue Sepal.Length 150 3 0.26500816 2 16.005702 0.0003345076070163084 Sepal.Width 150 3 0.11538776 2 2.091075 0.3515028004158132768 Petal.Length 150 3 0.18518776 2 55.422503 0.0000000000009229038 Petal.Width 150 3 0.04188163 2 39.213114 0.0000000030547839322
Welch t-test performed on each row of 2 large (million row) matrices:
X <- matrix(rnorm(10000000), ncol = 10) Y <- matrix(rnorm(10000000), ncol = 10) row_t_welch(X, Y) # running time: 2.4 seconds
Confidence interval computations can be turned-off for further increase in speed:
row_t_welch(X, Y, conf.level = NA) # running time: 1 second
row_t_onesample
row_wilcoxon_onesample
row_t_equalvar
row_t_welch
row_wilcoxon_twosample
row_t_paired
row_wilcoxon_paired
row_oneway_equalvar
row_oneway_welch
row_kruskalwallis
row_waerden
row_f_var
row_bartlett
row_flignerkilleen
row_levene
row_brownforsythe
row_cor_pearson
row_cosinor
row_kolmogorovsmirnov_twosample
row_jarquebera
row_andersondarling
For more information please refer to the Wiki page:
Computing thousands of test statistics simultaneously in R, Holger Schwender, Tina Müller.Statistical Computing & Graphics. Volume 18, No 1, June 2007.
CRAN:
ttests()
row.ttest.stat()
MultiTtest()
bartlettTests()
harmonic.regression()
BioConductor:
lmFit()
rowttests()
mt.teststat()
row.T.test()
rowTtest()
lmPerGene()
GitHub:
rowWilcoxonTests()
matrix.t.test()
wilcoxauc()
用于执行各种矩阵统计检验的R语言包
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
Matrix Tests
A package dedicated to running multiple statistical hypothesis tests on rows and columns of matrices.
Goals
Examples
1. Bartlett’s test on columns
Bartlett’s test on every column of iris dataset using Species as groups:
2. Welch t-test on rows
Welch t-test performed on each row of 2 large (million row) matrices:
Confidence interval computations can be turned-off for further increase in speed:
Available Tests
row_t_onesamplerow_wilcoxon_onesamplerow_t_equalvarrow_t_welchrow_wilcoxon_twosamplerow_t_pairedrow_wilcoxon_pairedrow_oneway_equalvarrow_oneway_welchrow_kruskalwallisrow_waerdenrow_f_varrow_bartlettrow_flignerkilleenrow_levenerow_brownforsytherow_cor_pearsonrow_cosinorrow_kolmogorovsmirnov_twosamplerow_jarqueberarow_andersondarlingFurther Information
For more information please refer to the Wiki page:
See Also
Literature
Computing thousands of test statistics simultaneously in R, Holger Schwender, Tina Müller.
Statistical Computing & Graphics. Volume 18, No 1, June 2007.
Packages
CRAN:
ttests()in the Rfast package.row.ttest.stat()in the metaMA package.MultiTtest()in the ClassComparison package.bartlettTests()in the heplots package.harmonic.regression()in the HarmonicRegression package.BioConductor:
lmFit()in the limma package.rowttests()in the genefilter package.mt.teststat()in the multtest package.row.T.test()in the HybridMTest package.rowTtest()in the viper package.lmPerGene()in the GSEAlm package.GitHub:
rowWilcoxonTests()in the sanssouci package.matrix.t.test()in the pi0 package.wilcoxauc()in the presto package.