Last chance! 50% off unlimited learning
Sale ends in
single.snp.tests(phenotype, stratum, data = sys.parent(), snp.data, subset, snp.subset)
phenotype
and
stratum
data. The row names of this are linked with the row
names of the snps
argument to establish correspondence of
phenotype and genotype data. If this argument is not supplied,
phenotype
and stratum
are evaluated in the calling
environment and should be in the same order as rows of snps
"snp.matrix"
containing the SNP
genotypes to be testedphenotype
and stratum
arguments The subset
argument can either be a logical vector of length
equal to the length of the vector of phenotypes, an integer vector
specifying positions in the data
frame, or a character vector
containing names of the selected rows in the data
frame. Similarly, the snp.subset
argument can be a logical,
integer, or character vector.
snp.lhs.tests
, snp.rhs.tests
data(testdata)
results <- single.snp.tests(cc, stratum=region, data=subject.data,
snp.data=Autosomes, snp.subset=1:10)
summary(results)
# QQ plot - see \code{\link{qq.chisq}}
qq.chisq(results$chi2.1df)
qq.chisq(results$chi2.2df)
Run the code above in your browser using DataLab