power.anova.test(stats)
power.anova.test()所属R语言包:stats
Power Calculations for Balanced One-Way Analysis of Variance Tests
平衡单向方差检验分析功率计算
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute power of test or determine parameters to obtain target power.
计算测试电源或确定参数,以获得目标电源。
用法----------Usage----------
power.anova.test(groups = NULL, n = NULL,
between.var = NULL, within.var = NULL,
sig.level = 0.05, power = NULL)
参数----------Arguments----------
参数:groups
Number of groups
组数
参数:n
Number of observations (per group)
的若干意见(每组)
参数:between.var
Between group variance
组间方差
参数:within.var
Within group variance
组内方差
参数:sig.level
Significance level (Type I error probability)
显着水平(I型错误的概率)
参数:power
Power of test (1 minus Type II error probability)
电源测试(1减去第二类错误的概率)
Details
详情----------Details----------
Exactly one of the parameters groups, n, between.var, power, within.var, and sig.level must be passed as NULL, and that parameter is determined from the others. Notice that sig.level has non-NULL default so NULL must be explicitly passed if you want it computed.
恰好一个参数groups,n,between.var,power,within.var,sig.level必须通过为NULL,该参数由别人决定。注意sig.level非默认值为NULL,NULL,必须明确地传递,如果你想它计算。
值----------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)----------
Claus Ekstr鴐
参见----------See Also----------
anova, lm, uniroot
anova,lm,uniroot
举例----------Examples----------
power.anova.test(groups=4, n=5, between.var=1, within.var=3)
# Power = 0.3535594[功率= 0.3535594]
power.anova.test(groups=4, between.var=1, within.var=3,
power=.80)
# n = 11.92613[N = 11.92613]
## Assume we have prior knowledge of the group means:[假设我们有组先验知识是指:]
groupmeans <- c(120, 130, 140, 150)
power.anova.test(groups = length(groupmeans),
between.var=var(groupmeans),
within.var=500, power=.90) # n = 15.18834[N = 15.18834]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|