snp.rhs.tests(formula, family = "binomial", link, weights, subset, data = parent.frame(), snp.data, rules=NULL, tests=NULL, robust = FALSE, uncertain=FALSE, control=glm.test.control(), allow.missing=0.01, score=FALSE)
"binomial"
, "Poisson"
, "Gaussian"
or
"gamma"
(case-insensitive)"logit"
,
"log"
, "identity"
or "inverse"
. The
default action is to use the "canonical" link for the family selected"SnpMatrix"
or
"XSnpMatrix"
containing the SNP data"ImputationRules"
. If
supplied, the rules coded in this object are used, together with
snp.data
, to calculate tests for imputed SNPssnp.data
,
or a list of short numeric or character
vectors defining groups of SNPs to be
tested (see Details
)data
to useTRUE
, robust tests will be carried outTRUE
, uncertain genotypes are used and
scored by their posterior expectations. Otherwise they are treated
as missingglm.test.control
GlmTests
or GlmTestsScore
depending on whether score
is set to FALSE
or TRUE
in the call.
data
argument is supplied, the snp.data
and
data
objects are aligned by rowname. Otherwise all variables in
the model formulae are assumed to be stored in the same order as the
columns of the snp.data
object. Usually SNPs to be used in tests will be referenced by name. However,
they can
also be referenced by number, a positive number indicating the
appropriate column in the input snp.data
, and a negative number
indicating (minus) a position in the rules
list. They can also
be referenced by a logical selection vector of length equal to the
number of columns in snp.data
. Sets of tests
involving more than one SNP are referenced by a list and
can use a mixture of observed and imputed
SNPs. If the tests
argument is missing, single SNP tests are
carried out; if a rules
is given, all imputed SNP tests
are calculated, otherwise all SNPs in the input snp.data
matrix
are tested. But note that, for single SNP tests, the function
single.snp.tests
will often achieve the same
result much faster.
GlmTests-class
,
GlmTestsScore-class
,
single.snp.tests
, snp.lhs.tests
,
impute.snps
, ImputationRules-class
,
SnpMatrix-class
, XSnpMatrix-class
data(testdata)
slt3 <- snp.rhs.tests(cc~strata(region), family="binomial",
data=subject.data, snp.data= Autosomes, tests=1:10)
print(slt3)
Run the code above in your browser using DataLab