Test of association between genotype and the untransformed phenotype,
adjusting for covariates and population structure.
Usage
BAT(y, G, X, S, parallel = F, check = T)
Arguments
y
Numeric phenotype vector.
G
Obs by snp genotype matrix.
X
Model matrix of covariates.
S
Model matrix of structure adjustments.
parallel
Logical indicating whether to run in parallel. Must register
parallel backend first.
check
Logical indicating whether to check input formatting.
Value
A numeric matrix of score statistics and p-values, one for each locus
(column) in G, assessing the null hypothesis that genotype is
unrelated to the phenotype.