trio.power(trio)
trio.power()所属R语言包:trio
Power and sample size calculation
电源和样本量的计算
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes power for genotypic TDT, allelic TDT or Score test given n trios or required sample size to gain given power.
计算功率的基因型的TDT,等位基因的TDT或分数测试给定的n三重奏或所需的样本量,以获得给定的功率。
用法----------Usage----------
trio.power(p = 0.5, RR = 1.5, alpha = 5*10^(-8), n = NULL, beta = NULL,
model = c("additive", "dominant", "recessive"), test = c("gTDT", "Score", "aTDT"))
## S3 method for class 'trio.power'
print(x,digits=4,...)
参数----------Arguments----------
参数:p
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 carying 0 mutant alleles.
一个数值向量的假定相对风险为个人得到与1(隐性模型2的情况下)突变型等位基因相比师范学校0突变等位基因的个体的风险的一种疾病。
参数:alpha
a numeric vector of significance levels (Type I Error probability).
一个数值向量的显着性水平(I型错误的概率)。
参数: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.
一个数值向量包含在一项研究中的三重奏。必须填写的功率计算。必须不为null样本量的计算。
参数:beta
the desired power of the test. Must be filled for power calculation. Must not be NULL for sample size calculation.
所需的功率的测试。必须填写的功率计算。必须不为null样本量的计算。
参数: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.
一个字符的基因型模型假设。可能的值"additive","dominant"和"recessive"。在情况下test="aTDT",标准的乘法模型将予以考虑。缩写是允许的。因此,例如,model = "dom"会适合一个占主导地位的模式,和model = "r"一个隐性模型。
参数: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.
选择的测试。必须是"aTDT","gTDT"或"Score"。缩写是允许的。因此,例如,test = "g"会执行基因型TDT和test = "S"一个分数测试。
参数:x
an object of class trio.power.
对象类trio.power。
参数:digits
number of digits that should be printed.
应打印的数字。
参数:...
ignored
忽视
Details
详细信息----------Details----------
Power and sample size calculation is derived on Knapp (1999). The power or the sample size will be calculated for all combinations of p, RR, alpha, test, model and n or beta.
电源和样本量的计算上,导出了纳普(1999)。电源或样本量的计算方法为P,RR,α,试验,示范和n或测试的所有组合。
值----------Value----------
An object of class trio.power containing the following numeric values or vectors, respectively:
一个对象的类trio.power中,包含以下数值或向量,分别:
参数:model
the chosen model
所选择的模型
参数:size
In case of sample size calculation: calculated sample sizes
在样本量的计算:计算样本量的情况下
参数:beta
In case of sample size calculation: desired power
在样本量的计算:所需功率的情况下,
参数:n
In case of power calculation: given number of trios
在功率计算:给定数量的三重奏
参数:power
In case of power calculation: calculated power
在功率计算:计算功率的情况下,
参数:alpha
Type I error
I型错误
参数:test
the chosen test
选择的测试
参数:RR
the relative risks assumed
相对承担风险
参数:p
the assumed allele frequency
假定等位基因频率
参数:calc
the type of calculation
的计算的类型
(作者)----------Author(s)----------
Christoph Neumann
参考文献----------References----------
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|