discrimPwr(sensR)
discrimPwr()所属R语言包:sensR
Sensory discrimination power analysis
感官鉴别力分析
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes the power of a difference or similarity test for a sensory discrimination experiment using the binomial distribution. d.primePwr is a convenience function that calls discrimPwr but has arguments in terms of d-prime rather than pd, the probability of discrimination.
计算能力测试的感官鉴别实验采用二项式分布的差异或相似。 d.primePwr是一个方便的功能,调用discrimPwr但是有论据,而不是歧视的概率PD,D-首要。
用法----------Usage----------
discrimPwr(pdA, pd0 = 0, sample.size, alpha = 0.05, pGuess = 1/2,
test = c("difference", "similarity"),
statistic = c("exact", "normal"))
d.primePwr(d.primeA, d.prime0 = 0, sample.size, alpha = 0.05,
method = c("duotrio", "threeAFC", "twoAFC", "triangle"),
test = c("difference", "similarity"),
statistic = c("exact", "normal"))
参数----------Arguments----------
参数:pdA
the probability of discrimination for the model under the alternative hypothesis; scalar between zero and one
标零和一之间的概率备择假设下的模型的歧视;
参数:d.primeA
d-prime for the model under the alternative hypothesis; non-negative numerical scalar
D-黄金备择假设下的模型非负数值标
参数:pd0
the probability of discrimination under the null hypothesis; scalar between zero and one
标零和一之间歧视的零假设下的概率;
参数:d.prime0
d-prime under the null hypothesis; non-negative numerical scalar
D-黄金的零假设下非负数值标
参数:sample.size
the sample size; a scalar positive integer
样本大小的标量正整数
参数:alpha
the type I level of the test; scalar between zero and one
I型水平的测试;零和一之间的标量
参数:method
the discrimination protocol for which the power should be computed
协议的权力应计算的歧视
参数:pGuess
the guessing probability for the discrimination protocol, e.g. 1/2 for duo-trio and 2-AFC, and 1/3 for triangle and 3-AFC; scalar between zero and one
猜测概率歧视的协议,例如1/2的二重奏三重奏,以及2-AFC,和1/3为三角形和3-AFC;零和一之间的标量
参数:test
the type of one-sided binomial test (direction of the alternative hypothesis): "difference" corresponds "greater" and "similarity" corresponds to "less"
片面二项式测试方向(替代的假设):“差异”的类型的对应“大于”和“相似性”,对应于“少”
参数:statistic
should power determination be based on the 'exact' binomial test or the normal approximation to this?
电源决心根据“精确”的二项测试或正常的近似?
Details
详细信息----------Details----------
The power of the standard one-tailed difference test where the null hypothesis is "no difference" is obtained with pd0 = 0.
标准一尾的差异检验的零假设是“没有差别”,获得pd0 = 0的力量。
The probability under the null hypothesis is given by pd0 + pg * (1 - pd0) where pg is the guessing probability pGuess. Similarly, the probability of the alternative hypothesis is given by pdA + pg * (1 - pdA)
的零假设下的概率pd0 + pg * (1 - pd0)其中pg是猜测概率pGuess。同样,替代的假设的概率由下式给出pdA + pg * (1 - pdA)
值----------Value----------
The power; a numerical scalar.
功率的数值标量。
(作者)----------Author(s)----------
Rune Haubo B Christensen and Per Bruun Brockhoff
参考文献----------References----------
models for sensory discrimination tests as generalized linear models.
参见----------See Also----------
findcr, discrim, discrimSim, AnotA, discrimSS
findcr,discrim,discrimSim,AnotA,discrimSS
实例----------Examples----------
## Finding the power of a discrimination test with d-prime = 1,[#查找判别测试用的d素数= 1的电源,]
## a sample of size 30 and a type I level of .05:[#的样本尺寸为30和I型水平为0.05:]
pd <- coef(rescale(d.prime = 1, method = "twoAFC"))$pd
discrimPwr(pd, sample.size = 30)
d.primePwr(1, sample.size = 30, method = "twoAFC")
discrimPwr(pd, sample.size = 30, statistic = "normal")
## A similarity example:[#A相似的例子:]
discrimPwr(pdA = 0.1, pd0 = 0.2, sample.size = 100, pGuess = 1/3,
test = "similarity")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|