{"id":16276620,"url":"https://github.com/karoliskoncevicius/matrixtests","last_synced_at":"2026-04-09T14:01:23.641Z","repository":{"id":41325208,"uuid":"85000870","full_name":"karoliskoncevicius/matrixTests","owner":"karoliskoncevicius","description":"R package for computing multiple hypothesis tests on rows/columns of a matrix or a data.frame","archived":false,"fork":false,"pushed_at":"2024-06-07T16:18:32.000Z","size":623,"stargazers_count":36,"open_issues_count":18,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-11T18:48:25.878Z","etag":null,"topics":["anova","fast","hypothesis-testing","matrix","package","r","rows","t-test","wilcoxon-test"],"latest_commit_sha":null,"homepage":"https://cran.r-project.org/web/packages/matrixTests/index.html","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karoliskoncevicius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["karoliskoncevicius"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-03-14T21:53:02.000Z","updated_at":"2024-05-16T09:59:37.000Z","dependencies_parsed_at":"2023-02-15T22:30:48.489Z","dependency_job_id":"91ac7966-ff43-421d-a95b-7fc7387083cb","html_url":"https://github.com/karoliskoncevicius/matrixTests","commit_stats":{"total_commits":402,"total_committers":2,"mean_commits":201.0,"dds":0.00995024875621886,"last_synced_commit":"2159ebd5622ec5a4b026569f84d746590547a64e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2FmatrixTests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2FmatrixTests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2FmatrixTests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karoliskoncevicius%2FmatrixTests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karoliskoncevicius","download_url":"https://codeload.github.com/karoliskoncevicius/matrixTests/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248219376,"owners_count":21067096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anova","fast","hypothesis-testing","matrix","package","r","rows","t-test","wilcoxon-test"],"created_at":"2024-10-10T18:49:28.200Z","updated_at":"2025-12-12T00:39:10.577Z","avatar_url":"https://github.com/karoliskoncevicius.png","language":"R","funding_links":["https://github.com/sponsors/karoliskoncevicius"],"categories":[],"sub_categories":[],"readme":"[![CRAN version](http://www.r-pkg.org/badges/version/matrixTests)](https://cran.r-project.org/package=matrixTests)\n[![Build Status](https://travis-ci.com/karoliskoncevicius/matrixTests.svg?branch=master)](https://travis-ci.com/karoliskoncevicius/matrixTests)\n[![codecov](https://codecov.io/gh/karoliskoncevicius/matrixTests/branch/master/graph/badge.svg)](https://codecov.io/gh/karoliskoncevicius/matrixTests)\n[![dependencies](https://tinyverse.netlify.com/badge/matrixTests)](https://CRAN.R-project.org/package=matrixTests)\n[![Monthly Downloads](https://cranlogs.r-pkg.org/badges/matrixTests)](https://cranlogs.r-pkg.org/badges/matrixTests)\n\n# Matrix Tests #\n\nA package dedicated to running multiple statistical hypothesis tests on rows and columns of matrices.\n\n![illustration](http://karolis.koncevicius.lt/data/matrixtests/illustration.png)\n\n## Goals ##\n\n1. Fast execution via vectorization.\n2. Convenient and detailed output format.\n3. Compatibility with tests implemented in base R.\n4. Careful handling of missing values and edge cases.\n\n## Examples ##\n\n#### 1. Bartlett's test on columns ####\n\nBartlett's test on every column of iris dataset using Species as groups:\n\n```r\ncol_bartlett(iris[,-5], iris$Species)\n```\n```\n             obs.tot obs.groups var.pooled df statistic                pvalue\nSepal.Length     150          3 0.26500816  2 16.005702 0.0003345076070163084\nSepal.Width      150          3 0.11538776  2  2.091075 0.3515028004158132768\nPetal.Length     150          3 0.18518776  2 55.422503 0.0000000000009229038\nPetal.Width      150          3 0.04188163  2 39.213114 0.0000000030547839322\n```\n\n#### 2. Welch t-test on rows ####\n\nWelch t-test performed on each row of 2 large (million row) matrices:\n\n```r\nX \u003c- matrix(rnorm(10000000), ncol = 10)\nY \u003c- matrix(rnorm(10000000), ncol = 10)\n\nrow_t_welch(X, Y)  # running time: 2.4 seconds\n```\n\nConfidence interval computations can be turned-off for further increase in speed:\n\n```r\nrow_t_welch(X, Y, conf.level = NA)  # running time: 1 second\n```\n\n## Available Tests ##\n\n|           Variant                |           Name                        |           Function                 |\n|----------------------------------|---------------------------------------|------------------------------------|\n| **Location tests (1 group)**     | Single sample Student's t.test        | `row_t_onesample`                  |\n|                                  | Single sample Wilcoxon's test         | `row_wilcoxon_onesample`           |\n| **Location tests (2 groups)**    | Equal variance Student's t.test       | `row_t_equalvar`                   |\n|                                  | Welch adjusted Student's t.test       | `row_t_welch`                      |\n|                                  | Two sample Wilcoxon's test            | `row_wilcoxon_twosample`           |\n| **Location tests (paired)**      | Paired Student's t.test               | `row_t_paired`                     |\n|                                  | Paired Wilcoxon's test                | `row_wilcoxon_paired`              |\n| **Location tests (2+ groups)**   | Equal variance oneway anova           | `row_oneway_equalvar`              |\n|                                  | Welch's oneway anova                  | `row_oneway_welch`                 |\n|                                  | Kruskal-Wallis test                   | `row_kruskalwallis`                |\n|                                  | van der Waerden's test                | `row_waerden`                      |\n| **Scale tests (2 groups)**       | F variance test                       | `row_f_var`                        |\n| **Scale tests (2+ groups)**      | Bartlett's test                       | `row_bartlett`                     |\n|                                  | Fligner-Killeen test                  | `row_flignerkilleen`               |\n|                                  | Levene's test                         | `row_levene`                       |\n|                                  | Brown-Forsythe test                   | `row_brownforsythe`                |\n| **Association tests**            | Pearson's correlation test            | `row_cor_pearson`                  |\n| **Periodicity tests**            | Cosinor                               | `row_cosinor`                      |\n| **Distribution tests**           | Kolmogorov-Smirnov test               | `row_kolmogorovsmirnov_twosample`  |\n| **Normality tests**              | Jarque-Bera test                      | `row_jarquebera`                   |\n|                                  | Anderson-Darling test                 | `row_andersondarling`              |\n\n\n## Further Information ##\n\nFor more information please refer to the [Wiki](https://github.com/karoliskoncevicius/matrixTests/wiki) page:\n\n1. [Installation Instructions](https://github.com/karoliskoncevicius/matrixTests/wiki/Installation)\n2. [Design Decisions](https://github.com/karoliskoncevicius/matrixTests/wiki/Design-Decisions)\n3. [Speed Benchmarks](https://github.com/karoliskoncevicius/matrixTests/wiki/Benchmarks)\n4. [Bug Fixes and Improvements to Base R](https://github.com/karoliskoncevicius/matrixTests/wiki/Bug-Fixes-and-Improvements-to-Base-R)\n\n\n## See Also ##\n\n### Literature ###\n\n**Computing thousands of test statistics simultaneously in R**, *Holger Schwender, Tina Müller*.\\\nStatistical Computing \u0026 Graphics. Volume 18, No 1, June 2007.\n\n### Packages ###\n\nCRAN:\n\n1. `ttests()` in the [**Rfast**](https://CRAN.R-project.org/package=Rfast) package.\n2. `row.ttest.stat()` in the [**metaMA**](https://CRAN.R-project.org/package=metaMA) package.\n3. `MultiTtest()` in the [**ClassComparison**](https://CRAN.R-project.org/package=ClassComparison) package.\n4. `bartlettTests()` in the [**heplots**](https://CRAN.R-project.org/package=heplots) package.\n5. `harmonic.regression()` in the [**HarmonicRegression**](https://CRAN.R-project.org/package=HarmonicRegression) package.\n\nBioConductor:\n\n1. `lmFit()` in the [**limma**](https://bioconductor.org/packages/release/bioc/html/limma.html) package.\n2. `rowttests()` in the [**genefilter**](https://bioconductor.org/packages/release/bioc/html/genefilter.html) package.\n3. `mt.teststat()` in the [**multtest**](https://www.bioconductor.org/packages/release/bioc/html/multtest.html) package.\n4. `row.T.test()` in the [**HybridMTest**](https://www.bioconductor.org/packages/release/bioc/html/HybridMTest.html) package.\n5. `rowTtest()` in the [**viper**](https://bioconductor.org/packages/release/bioc/html/viper.html) package.\n6. `lmPerGene()` in the [**GSEAlm**](https://www.bioconductor.org/packages/release/bioc/html/GSEAlm.html) package.\n\nGitHub:\n\n1. `rowWilcoxonTests()` in the [**sanssouci**](https://github.com/pneuvial/sanssouci) package.\n2. `matrix.t.test()` in the [**pi0**](https://github.com/gitlongor/pi0) package.\n3. `wilcoxauc()` in the [**presto**](https://github.com/immunogenomics/presto) package.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaroliskoncevicius%2Fmatrixtests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaroliskoncevicius%2Fmatrixtests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaroliskoncevicius%2Fmatrixtests/lists"}