Test of association between genotype and the untransformed phenotype, adjusting for covariates and population structure.
BAT(y, G, X, S, parallel = F, check = T)
Numeric phenotype vector.
Obs by snp genotype matrix.
Model matrix of covariates.
Model matrix of structure adjustments.
Logical indicating whether to run in parallel. Must register parallel backend first.
Logical indicating whether to check input formatting.
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.
# NOT RUN {
# BAT against normal phenotype
p = RNOmni::BAT(y=RNOmni::Y[,1],G=RNOmni::G[,1:10],X=RNOmni::X,S=RNOmni::S);
# }
Run the code above in your browser using DataLab