Compute Power or Sample Size for GWAS with Covariate Effect
Overview
Fast computation of the required sample size or the achieved power, for GWAS studies with different types of covariate effects and different types of covariate-gene dependency structure. For the detailed description of the methodology, see Zhang (2022) "Power and Sample Size Computation for Genetic Association Studies of Binary Traits: Accounting for Covariate Effects" arXiv:2203.15641.
- Updated the power (sample size) computation functions to accommodate conditional dependency between covariates.
From NEWS.md in the release
Install
Health
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Ziang Zhang <aguero.zhang@mail.utoronto.ca>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Ziang",
family = "Zhang",
role = c("aut", "cre"),
email = "aguero.zhang@mail.utoronto.ca"),
person(given = "Lei",
family = "Sun",
role = "aut"))
as necessary.
The Description field contains
Accounting for Covariate Effects" <arXiv:2203.15641>.
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 6
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- SPCompute HTML
Downloads
Dependencies
Installing SPCompute adds no packages beyond those that come with R.
Code & Tests
People & History
Maintainer since 1.0.1 (2022)
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.0.3Latest
- 1.0.22022-09-05 · diff ↗ ·
added 3 exports
Compute_Power_multi, Compute_Size_multi, convert_preva_to_intercept - RR 4.2.0 released · 2022-04-22
- 1.0.12022-04-01
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2022-04-01
- Total releases
- 3 / 4 yrs
- License
- GPL (>= 3) OSI
- Download size
- 42 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("SPCompute")Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-26, which the citation names so these numbers can be found later. More on citing and the projects behind them.