Generalized Linear Mixed Model Association Tests
Overview
Perform association tests using generalized linear mixed models (GLMMs) in genome-wide association studies (GWAS) and sequencing association studies. First, GMMAT fits a GLMM with covariate adjustment and random effects to account for population structure and familial or cryptic relatedness. For GWAS, GMMAT performs score tests for each genetic variant as proposed in Chen et al. (2016) DOI:10.1016/j.ajhg.2016.02.012. For candidate gene studies, GMMAT can also perform Wald tests to get the effect size estimate for each genetic variant. For rare variant analysis from sequencing association studies, GMMAT performs the variant Set Mixed Model Association Tests (SMMAT) as proposed in Chen et al. (2019) DOI:10.1016/j.ajhg.2018.12.012, including the burden test, the sequence kernel association test (SKAT), SKAT-O and an efficient hybrid test of the burden test and SKAT, based on user-defined variant sets.
Install
Health
ERRORtestsr-oldrel-macos-arm64
Running ‘testthat.R’ [2s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(GMMAT)
> Sys.setenv(MKL_NUM_THREADS = 1)
>
> test_check("GMMAT")
*** caught segfault ***
address 0x110, cause 'invalid permissions'
*** caught segfault ***
address 0x110, cause 'invalid permissions'
Traceback:
1: eval(c.expr, envir = args, enclos = envir)
2: eval(c.expr, envir = args, enclos = envir)
3: doTryCatch(return(expr), name, parentenv, handler)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
5: tryCatchList(expr, classes, parentenv, handlers)
6: tryCatch(eval(c.expr, envir = args, enclos = envir), error = function(e) e)
7: FUN(X[[i]], ...)
8: lapply(X = S, FUN = FUN, ...)
9: doTryCatch(return(expr), name, parentenv, handler)
10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
11: tryCatchList(expr, classes, parentenv, handlers)
12: tryCatch(expr, error = function(e) { call <- c
...[truncated]...
'test_SMMAT.meta.R:165:2', 'test_glmm.score.R:317:2',
'test_glmm.score.R:616:2', 'test_glmm.score.R:914:2',
'test_glmm.score.R:1213:2', 'test_glmm.score.R:1505:2',
'test_glmm.score.R:1797:2', 'test_glmm.wald.R:2:2', 'test_glmm.wald.R:805:2',
'test_glmm.wald.R:1609:2', 'test_glmm.wald.R:1761:2', 'test_glmmkin.R:2:2',
'test_glmmkin.R:82:2', 'test_glmmkin.R:163:2', 'test_glmmkin.R:245:2',
'test_glmmkin.R:328:2', 'test_glmmkin.R:362:2', 'test_glmmkin.R:396:2'
• {SeqArray} is not installed (2): 'test_SMMAT.R:2:9', 'test_SMMAT.meta.R:2:2'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_glmm.score.R:37:2'): cross-sectional id le 400 binomial ────────
Error in `file(outfile, "w")`: cannot open the connection
Backtrace:
▆
1. └─GMMAT::glmm.score(...) at test_glmm.score.R:37:9
2. └─base::file(outfile, "w")
[ FAIL 1 | WARN 2 | SKIP 30 | PASS 3 ]
Error:
! Test failures.
Execution halted- ERROR12 OK, 1 ERRORNow
- ERROR9 OK, 3 NOTE, 2 ERROR2026-03-10
Documentation
- Help pages
- 8includes a package overview page
- Examples that run
- 17%1 run in a plain check · 5 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 92%
- Return-value docs
- 100%
- Help pages citing references
- 75%
- GMMAT PDF
Downloads
Dependencies
Installing GMMAT adds 6 packages (4 with compiled code, 8.9 MB of source tarballs). Heaviest: data.table 5.7 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 1.5.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.4.22023-11-17 · diff ↗
- 1.4.12023-10-07 · diff ↗
- RR 4.3.0 released · 2023-04-21
- unarchivedReturned to CRAN2023-04-14
- 1.4.02023-04-14 · diff ↗
- removedRemoved from CRAN2023-04-05policy violations Including misrepresentation of authorship
- RR 4.2.0 released · 2022-04-22
- 1.3.22021-07-16 · diff ↗
- RR 4.1.0 released · 2021-05-18
- unarchivedReturned to CRAN2020-09-23
- 1.3.1
- archivedRemoved from CRAN2020-09-20problems were not corrected in time
Show 10 earlier eventsHide 10 earlier events
Package metadata
- First published
- 2019-01-30
- Total releases
- 13 / 7 yrs
- License
- GPL (>= 3) OSI
- Copyright
- See COPYRIGHTS for details.
- Minimum R
- ≥ 3.2.0
- Bundled data
- 509 KB / 2 files
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("GMMAT")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.