single.snp.tests
and provide methods for extracting key
elements. The class "SingleSnpTestsScore"
extends class
"SingleSnpTests"
to include the score and score variance statistics in order to
provide methods for pooling results from several studies or parts of a study
new("SingleSnpTests", ...)
and
new("SingleSnpTestsScore", ...)
but, more usually, will be created
by calls to single.snp.tests
snp.names
:SnpMatrix
chisq
:N
:N.r2
:N
and
the imputation $r^2$. Otherwise a zero-length objectU
:"SingleSnpTestsScore"
) Score statisticsV
:"SingleSnpTestsScore"
) Score variancessignature(x = "SingleSnpTests", i = "ANY")
:
Subsetting operatorsignature(x = "SingleSnpTestsScore", i = "ANY")
:
Subsetting operatorsignature(x = "SingleSnpTests", df =
"numeric")
:
Extract 1- and 2-df chi-squared test valuessignature(x = "SingleSnpTestsScore", simplify =
"missing")
: Extract signs of associations tested by the 1df testssignature(x="SingleSnpTests")
: Extract names of
test values (snp.names
slot)signature(x = "SingleSnpTests", df =
"numeric")
:
Evaluate 1- and 2-df test p-valuessignature(object = "SingleSnpTests")
:
List all tests and p-valuessignature(from = "SingleSnpTests", to = "data.frame")
:
Conversion to data frame classsignature(object = "SingleSnpTests")
:
Extract sample sizes for testssignature(object = "SingleSnpTests")
:
Extract effective sample sizes for tests. For imputed tests, these
are the real sample sizes multiplied by the corresponding
R-squared values for imputationsignature(object = "SingleSnpTests")
:
Summarize all tests and p-valuessignature(x = "SingleSnpTestsScore",
y = "SingleSnpTestsScore", score = "logical")
: Combine two
sets of test results. Used recursively by pool
signature(x = "SingleSnpTestsScore", snps =
"ANY")
: Emulate, in the score vector and its (co)variances,
the effect of switching of the alleles for the specified testssingle.snp.tests
, pool
showClass("SingleSnpTests")
showClass("SingleSnpTestsScore")
Run the code above in your browser using DataLab