matrixTests

R package for computing multiple hypothesis tests on rows/columns of a matrix or a data.frame

https://github.com/karoliskoncevicius/matrixtests

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary

Keywords

anova fast hypothesis-testing matrix package r rows t-test wilcoxon-test
Last synced: 6 months ago · JSON representation

Repository

R package for computing multiple hypothesis tests on rows/columns of a matrix or a data.frame

Basic Info
Statistics
  • Stars: 37
  • Watchers: 4
  • Forks: 5
  • Open Issues: 19
  • Releases: 1
Topics
anova fast hypothesis-testing matrix package r rows t-test wilcoxon-test
Created almost 9 years ago · Last pushed over 1 year ago
Metadata Files
Readme Funding

README.md

CRAN version Build Status codecov dependencies Monthly Downloads

Matrix Tests

A package dedicated to running multiple statistical hypothesis tests on rows and columns of matrices.

illustration

Goals

  1. Fast execution via vectorization.
  2. Convenient and detailed output format.
  3. Compatibility with tests implemented in base R.
  4. Careful handling of missing values and edge cases.

Examples

1. Bartlett's test on columns

Bartlett's test on every column of iris dataset using Species as groups:

r 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

2. Welch t-test on rows

Welch t-test performed on each row of 2 large (million row) matrices:

```r X <- matrix(rnorm(10000000), ncol = 10) Y <- matrix(rnorm(10000000), ncol = 10)

rowtwelch(X, Y) # running time: 2.4 seconds ```

Confidence interval computations can be turned-off for further increase in speed:

r row_t_welch(X, Y, conf.level = NA) # running time: 1 second

Available Tests

| Variant | Name | Function | |----------------------------------|---------------------------------------|------------------------------------| | Location tests (1 group) | Single sample Student's t.test | row_t_onesample | | | Single sample Wilcoxon's test | row_wilcoxon_onesample | | Location tests (2 groups) | Equal variance Student's t.test | row_t_equalvar | | | Welch adjusted Student's t.test | row_t_welch | | | Two sample Wilcoxon's test | row_wilcoxon_twosample | | Location tests (paired) | Paired Student's t.test | row_t_paired | | | Paired Wilcoxon's test | row_wilcoxon_paired | | Location tests (2+ groups) | Equal variance oneway anova | row_oneway_equalvar | | | Welch's oneway anova | row_oneway_welch | | | Kruskal-Wallis test | row_kruskalwallis | | | van der Waerden's test | row_waerden | | Scale tests (2 groups) | F variance test | row_f_var | | Scale tests (2+ groups) | Bartlett's test | row_bartlett | | | Fligner-Killeen test | row_flignerkilleen | | | Levene's test | row_levene | | | Brown-Forsythe test | row_brownforsythe | | Association tests | Pearson's correlation test | row_cor_pearson | | Periodicity tests | Cosinor | row_cosinor | | Distribution tests | Kolmogorov-Smirnov test | row_kolmogorovsmirnov_twosample | | Normality tests | Jarque-Bera test | row_jarquebera | | | Anderson-Darling test | row_andersondarling |

Further Information

For more information please refer to the Wiki page:

  1. Installation Instructions
  2. Design Decisions
  3. Speed Benchmarks
  4. Bug Fixes and Improvements to Base R

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:

  1. ttests() in the Rfast package.
  2. row.ttest.stat() in the metaMA package.
  3. MultiTtest() in the ClassComparison package.
  4. bartlettTests() in the heplots package.
  5. harmonic.regression() in the HarmonicRegression package.

BioConductor:

  1. lmFit() in the limma package.
  2. rowttests() in the genefilter package.
  3. mt.teststat() in the multtest package.
  4. row.T.test() in the HybridMTest package.
  5. rowTtest() in the viper package.
  6. lmPerGene() in the GSEAlm package.

GitHub:

  1. rowWilcoxonTests() in the sanssouci package.
  2. matrix.t.test() in the pi0 package.
  3. wilcoxauc() in the presto package.

Owner

  • Name: Karolis Koncevičius
  • Login: karoliskoncevicius
  • Kind: user
  • Location: Vilnius, Lithuania

GitHub Events

Total
  • Watch event: 1
  • Fork event: 1
Last Year
  • Watch event: 1
  • Fork event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 402
  • Total Committers: 1
  • Avg Commits per committer: 402.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
KarolisKoncevicius k****s@g****m 402

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 35
  • Total pull requests: 0
  • Average time to close issues: 10 months
  • Average time to close pull requests: N/A
  • Total issue authors: 4
  • Total pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • karoliskoncevicius (32)
  • MADscientist314 (1)
  • PedroMilanezAlmeida (1)
  • ysbioinfo (1)
Pull Request Authors
Top Labels
Issue Labels
new feature (18) internal (6) change (6) bug (3) tag: in progress (2) meta (1) documentation (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 1,414 last-month
  • Total docker downloads: 32,799
  • Total dependent packages: 4
  • Total dependent repositories: 14
  • Total versions: 15
  • Total maintainers: 1
cran.r-project.org: matrixTests

Fast Statistical Hypothesis Tests on Rows and Columns of Matrices

  • Versions: 15
  • Dependent Packages: 4
  • Dependent Repositories: 14
  • Downloads: 1,414 Last month
  • Docker Downloads: 32,799
Rankings
Docker downloads count: 0.6%
Dependent repos count: 7.7%
Average: 8.0%
Stargazers count: 8.8%
Dependent packages count: 9.3%
Forks count: 10.8%
Downloads: 10.8%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.2.2 depends
  • matrixStats * imports
  • PMCMRplus * suggests
  • car * suggests
  • cosinor * suggests
  • cosinor2 * suggests
  • moments * suggests
  • testthat * suggests