EProportions · Guide test 300
SKAT O
Adaptively combines SKAT and burden test behavior while accounting for the search over their combination.
Do it in CodeSplash
In the app, set it up in Analyze with this method:
- Rare-variant set tests (SKAT, SKAT-O, burden) — Is a set of rare variants in a gene, taken together, associated with the trait?
In Rare-variant set tests (SKAT, SKAT-O, burden), choose Test = SKAT-O.
Do it in CodeSplash Run this test on your own data, in Python or R.
Bench
Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.
Bench · SKAT-O
0: every effect raises the trait (the burden test's case); ½: mixed directions (SKAT's case).
Your data
Rare variants and a trait, simulated| Person | Trait | Minor alleles in the set |
|---|---|---|
| 1.000 | −0.522 | 4.000 |
| 2.000 | −1.494 | 0.000 |
| 3.000 | 0.580 | 0.000 |
| 4.000 | −1.531 | 1.000 |
| 5.000 | 1.163 | 0.000 |
| 6.000 | −0.727 | 0.000 |
| 7.000 | −1.445 | 1.000 |
| 8.000 | −0.269 | 0.000 |
| 9.000 | −1.123 | 1.000 |
| 10.000 | −1.350 | 0.000 |
| 11.000 | −0.967 | 1.000 |
| 12.000 | −0.936 | 0.000 |
300 people, 10 rare variants (106 carry at least one) · first 12 of 40 rows
If H₀ were true
- The reference: how z_O varies across samples when H₀ is true (SKAT-O's p (the search over ρ adjusted by Lee et al.'s integral, Imhof tails), shown as the z with the same upper tail).
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = < .001).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- the grid 0, .01, .04, .09, .25, .5, 1 between SKAT (0) and burden (1)
- the minimum p adjusted for the search by Lee et al.'s one-dimensional integral
The verdict
min p_ρ = 0.00, z = 3.18, p < .001
p ≤ α = .050: reject H₀
Robust to not knowing whether effects share a direction, at a small price in power against either extreme. Choose the ρ grid in advance. Research use only, not a diagnostic or clinical result.
- Statistic
- 3.184
- p-value
- 0.0007
SKAT-O on 300 people, 10 rare variants (106 carry at least one): min p_ρ = 0.00, z = 3.18, p < .001. The p-value is below α = .050, so the data are hard to reconcile with H₀.
Question and hypotheses
H0: all effects in a variant set are zero.
Assumptions
SKAT null-model assumptions; a prespecified correlation/tuning grid and valid adaptive calibration.
Formula
Parameters and notation
ρ∈[0,1] interpolates mixed-direction kernel and aligned burden effects; Qburden=(wᵀGᵀr)² under a common residual convention.
Structure of the method
Evaluate a prespecified family interpolating between kernel and burden scores, then calibrate the minimum p value across the correlation grid using their joint dependence. The adaptive correction is central: selecting the best raw component p value is not the final SKAT-O test.
Estimated and nuisance parameters
The null-model coefficients, residual scale and kernel eigenstructure are estimated as in SKAT. The best-performing grid position is selected by the data but is not an interpretable estimate of biological effect correlation without further work. The reported adjusted p value accounts for the defined search.
Settings and design choices
Choose the variant set, annotation/frequency weights, covariates and admissible correlation grid before analysis. The package method="optimal.adj" is a specified SKAT-O implementation; numerical variants and binary outcome adjustments should be named. A search over additional masks or weights creates another selection layer.
Fitting and adaptation
Fit one compatible null model and reproduce all required component statistics and adaptive calibration. If adapting to a new ancestry or phenotype, revisit population structure, genotype quality and small-sample calibration. No neural fine-tuning is involved; phenotype-driven optimization outside the validated search requires new error control.
Sensitivity and robustness
Power depends on how many variants are causal and whether effects align or oppose. Strong case-control imbalance, ultra-rare variants and inaccurate null models can defeat standard approximations. Show the final adjusted result separately from the selected component and report all search dimensions to avoid understated multiplicity.
How to use and calibrate
Use SKAT-O’s joint analytical/resampling adjustment for the minimum over ρ.
Example application
Retain power when it is unknown whether rare variants act in the same direction.
Interpretation and pitfalls
Watch out
The smallest unadjusted grid p value is not the SKAT-O p value. Report weights and implementation.
What changed in edition 2
- New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.
Python and R
Continuous-trait variant, additive genotype dosage, Beta(1,25) rare-variant weights. SKAT-O adaptively combines variance-component and burden evidence with its own calibration; r.corr=1 is the weighted burden endpoint.
Not run — Python launcher syntax checked; R backend runtime not verified · needs Python standard library + Rscript; R packages: SKAT
# Python launcher for the complete R implementation below.
# Requires Rscript on PATH and the listed R packages.
import shutil
import subprocess
rscript = shutil.which("Rscript")
if rscript is None:
raise RuntimeError("Install R and make Rscript available on PATH.")
r_code = r"""
set.seed(2026)
n<-200;m<-12;maf<-seq(.01,.15,length.out=m);G<-sapply(maf,function(p)rbinom(n,2,p));age<-rnorm(n);y<-.3*age+rnorm(n);null<-SKAT::SKAT_Null_Model(y~age,out_type="C");print(SKAT::SKAT(G,null,weights.beta=c(1,25),method="optimal.adj"))
"""
# No shell interpolation. A failed R execution raises an error in Python.
result = subprocess.run([rscript, "--vanilla", "-"], input=r_code,
text=True, capture_output=True)
print(result.stdout)
if result.stderr:
print(result.stderr)
result.check_returncode()
Not run — Syntax checked; runtime not verified in the final environment · needs SKAT
set.seed(2026)
n<-200;m<-12;maf<-seq(.01,.15,length.out=m);G<-sapply(maf,function(p)rbinom(n,2,p));age<-rnorm(n);y<-.3*age+rnorm(n);null<-SKAT::SKAT_Null_Model(y~age,out_type="C");print(SKAT::SKAT(G,null,weights.beta=c(1,25),method="optimal.adj"))
Sources
- SKAT and SKAT O documentationsearch.r-project.org
- Lee et al. (2012) — Lee et al. (2012) · Optimal Unified Approach for Rare-Variant Association Testingpmc.ncbi.nlm.nih.gov
- SKATsearch.r-project.org
- Method sourcepmc.ncbi.nlm.nih.gov
- SKAT_Null_Modelsearch.r-project.org
- Statistics guide v4 (historical):
- Python: Python launcher syntax checked; R backend runtime not verified · R: Syntax checked; runtime not verified in the final environment
- Reference's record:
- Edition 2 review: Python: skip · R: not executed (Rscript unavailable); why not run: Python: Python-to-R bridge; Rscript is unavailable. R code was not executed. Python: Not run in the reference's review: Python-to-R bridge; Rscript is unavailable. R code was not executed. R: Reviewed but not run: R wasn't available to the reference's authors.
From the CodeSplash statistics guide (v4), entry 300, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT300.