Usage
trio.power(maf = 0.5, RR = 1.5, alpha = 5*10^(-8), n = NULL, beta = NULL, model = c("additive", "dominant", "recessive"), test = c("gTDT", "Score", "aTDT"))
"print"(x,digits=4,...)
Arguments
maf
a numeric vector of population frequencies of a mutant allele.
RR
a numeric vector of the assumed relative risks for an individual getting a disease with 1 (in case of recessive model 2) mutant alleles compared to the risk of individuals carnying 0 mutant alleles.
alpha
a numeric vector of significance levels (Type I Error probability).
n
a numeric vector containing number of trios in a study. Must be filled for power calculation. Must not be NULL for sample size calculation.
beta
the desired power of the test. Must be filled for power calculation. Must not be NULL for sample size calculation.
model
a character containing the genotypic model assumed. Possible values are "additive"
, "dominant"
and "recessive"
. In case of test="aTDT"
,
the standard multiplicative model will be considered. Abbreviations are allowed. Thus, e.g., model = "dom"
will fit a dominant model,
and model = "r"
a recessive model.
test
the chosen test. Must be "aTDT"
, "gTDT"
or "Score"
. Abbreviations are allowed. Thus, e.g., test = "g"
will perform a
genotypic TDT, and test = "S"
a Score test.
x
an object of class trio.power
.
digits
number of digits that should be printed.