power.t.test(stats)
power.t.test()所属R语言包:stats
Power calculations for one and two sample t tests
功率计算,一和两样本t检验
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute power of test, or determine parameters to obtain target power.
计算测试电源,或确定参数,以获得目标电源。
用法----------Usage----------
power.t.test(n = NULL, delta = NULL, sd = 1, sig.level = 0.05,
power = NULL,
type = c("two.sample", "one.sample", "paired"),
alternative = c("two.sided", "one.sided"),
strict = FALSE)
参数----------Arguments----------
参数:n
Number of observations (per group)
的若干意见(每组)
参数:delta
True difference in means
真正的差别在手段
参数:sd
Standard deviation
标准偏差
参数:sig.level
Significance level (Type I error probability)
显着水平(I型错误的概率)
参数:power
Power of test (1 minus Type II error probability)
电源测试(1减去第二类错误的概率)
参数:type
Type of t test
t检验的类型
参数:alternative
One- or two-sided test
一个或双面测试
参数:strict
Use strict interpretation in two-sided case
使用双面的情况下严格解释
Details
详情----------Details----------
Exactly one of the parameters n, delta, power, sd, and sig.level must be passed as NULL, and that parameter is determined from the others. Notice that the last two have non-NULL defaults so NULL must be explicitly passed if you want to compute them.
恰好一个参数n,delta,power,sd,sig.level必须通过为NULL,该参数是从别人决定。请注意,近两年有非NULL的默认值NULL,必须明确地传递,如果你想计算他们。
If strict = TRUE is used, the power will include the probability of rejection in the opposite direction of the true effect, in the two-sided case. Without this the power will be half the significance level if the true difference is zero.
如果strict = TRUE使用,电源将包括概率排斥反应的真实效果相反的方向,在双面的情况下。如果没有这个权力将显着性水平的一半,如果真正的区别是零。
值----------Value----------
Object of class "power.htest", a list of the arguments (including the computed one) augmented with method and note elements.
Object类的"power.htest",列表中的参数(包括计算一)扩充了method和note元素。
注意----------Note----------
uniroot is used to solve power equation for unknowns, so you may see errors from it, notably about inability to bracket the root when invalid arguments are given.
uniroot是用来解决功率为未知数的方程,所以你可能会看到,特别是有关无力支架根从它的错误,无效的参数时。
作者(S)----------Author(s)----------
Peter Dalgaard. Based on previous work by Claus
Ekstr鴐
参见----------See Also----------
t.test, uniroot
t.test,uniroot
举例----------Examples----------
power.t.test(n = 20, delta = 1)
power.t.test(power = .90, delta = 1)
power.t.test(power = .90, delta = 1, alternative = "one.sided")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|