
Quantile-level RIF GWAS
quantile_gwas.RdRuns a genome-wide association scan at user-specified quantile levels (taus) using Recentered Influence Functions (RIF). Supports two covariate modes:
"residualize": partial out C from SNPs (but never from Y).
"include": include C directly in the regression alongside each SNP.
Arguments
- Y
Numeric vector (length N), phenotype.
- G
Numeric matrix (N x P) of SNP dosages or genotypes.
- taus
Numeric vector of quantile levels.
- C
Optional N x K covariate matrix.
- covar_mode
Either "residualize" (default) or "include".
"residualize": partial out C from G before regression.
"include": include C directly in regression.
- density_floor
Positive scalar; lower bound for estimated densities.
- benchmark
Logical; if TRUE, include timing info.
- verbose
Logical; print progress messages.