找回密码
 注册
查看: 393|回复: 0

R语言 sensR包 rescale()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 01:08:02 | 显示全部楼层 |阅读模式
rescale(sensR)
rescale()所属R语言包:sensR

                                        Transform or rescale between pc, pd and d-prime for sensory
                                         PC,PD和D-黄金之间的转换或重新调整的感官

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Transforms or rescales estimates and optionally standard errors between the three levels at which a sensory difference is measured: pc (proportion of correct answers), pd (proportion of discriminators) and d-prime. rescale is the main function and only one of pc, pd or d-prime should be given as argument — values for the remaining two scales will be computed.
变换或重新调整估计和可选的标准误差之间的感官差异是衡量三个层次:个人电脑(正确答案的比例),PD(比例的鉴别)和D-黄金。 rescale的主要功能是只有一个PC,PD或D-黄金应作为参数给定 - 剩下的两个尺度值将被计算。

A number of auxiliary functions are also provided:   
还提供了许多辅助功能:

psyfunimplements the psychometric functions and maps from d-prime to pc
psyfun实现的心理功能和图D-贷到电脑

psyinvimplements the inverse psychometric functions and maps from pc to d-prime
psyinv实现了的逆心理测量功能和图从PC到D-贷

psyderivimplements the derivative of the psychometric functions
psyderiv实现的心理测量功能的衍生物

pc2pdmaps from pc to pd
pc2pd图从PC到PD

pd2pcmaps from pd to pc   
pd2pc映射从PD到电脑的


用法----------Usage----------



rescale(pc, pd, d.prime, std.err,
        method = c("duotrio", "threeAFC", "twoAFC", "triangle"))

psyfun(d.prime, method = c("duotrio", "threeAFC", "twoAFC", "triangle"))

psyinv(pc, method = c("duotrio", "threeAFC", "twoAFC", "triangle"))

psyderiv(d.prime, method = c("duotrio", "threeAFC", "twoAFC", "triangle"))

pc2pd(pc, Pguess)

pd2pc(pd, Pguess)




参数----------Arguments----------

参数:pc
the proportion of correct answers; a numerical vector between 0 and 1
介于0和1之间的一个数值向量正确答案的比例;


参数:pd
the proportion of discriminators; a numerical vector between 0 and 1
介于0和1之间的一个数值向量的比例的鉴别器;


参数:d.prime
the sensory difference on the d-prime scale; a non-negative numerical vector.
差异的感官上的d-贷的规模;一个非负的数值向量。


参数:std.err
optional numerical vector of standard errors of the same length as the either of pc, pd or d.prime. Negative values are not allowed, but values may be NA  
可选的数值向量相同长度的标准误差任pc,pd或d.prime。负值是不允许的,但值可能是NA


参数:method
the sensory discrimination protocol for which the results should apply
感觉辨别协议的结果应该适用


参数:Pguess
the guessing probability implied by the protocol; a numeric scalar between 0 and 1
猜测概率暗示由协议;介于0和1之间的一个数值的标量


Details

详细信息----------Details----------

The rescale function is based on the fact that once the protocol and one of  pc, pd and d-prime is known, the other two can be computed. The same applies to the standard errors of these parameters.
rescale函数是根据已知的事实,即一旦协议和一个PC,PD和d贷,其他两个可以被计算出来。这同样适用于这些参数的标准误差。

Standard errors are optional, but if they are supplied, the length of the std.err argument has to match the length of pc, pd or d.prime whichever is given.
标准误差是可选的,但如果他们提供的长度std.err参数的长度相匹配的pc,pd或d.prime为准。

A print method is implemented for rescale objects.
Aprint方法实施为rescale对象。


值----------Value----------

For rescale an object of class rescale with elements <table summary="R valueblock"> <tr valign="top"><td>coefficients</td> <td> a data.frame with values of pc, pd and d.prime corresponding to the input</td></tr> <tr valign="top"><td>std.err</td> <td> if standard errors are given trough the std.err argument a data.frame of the same size and shape as coefficients with standard errors. Otherwise missing.</td></tr> <tr valign="top"><td>method</td> <td> the sensory discrimination protocol for which the results apply</td></tr>
rescale类的一个对象rescale的元素的表summary="R valueblock"> <tr valign="top"> <TD> coefficients</ TD> <td>一个data.frame与pc,pd和d.prime对应的输入的值</ TD> </ TR> <tr valign="top"> <TD> X> </ TD> <TD>如果标准错误槽,std.err参数std.err data.frame标准误差的大小和形状相同的。否则丢失。</ TD> </ TR> <tr valign="top"> <TD>coefficients </ TD> <TD>的感觉辨别协议的结果</ TD> </ TR >

</table> For psyfun, psyinv, psyderiv, pc2pd and pd2pc a numerical vector of the same length as the first argument with appropriate contents.
</ TABLE>对于psyfun,psyinv,psyderiv,pc2pd和pd2pc一个数值向量与相应的内容作为第一个参数相同长度的。


(作者)----------Author(s)----------


Rune Haubo B Christensen



实例----------Examples----------



## suppose 15 out of 20 are observed in a duo-trio experiment, then[15 20#假设二重奏,三重奏实验中观察到,然后]
## the estimated probability of correct a answer is[#概率的估计正确的答案是]
(pc <- 15/20)
## The standard error of this estimate is[#这个估计的标准误差是]
(se.pc <- sqrt(pc * (1 - pc) / 20))
## The corresponding estimate of proportion of discriminators (pd) and[#估算的相应比例的鉴别(PD)和]
## d-prime with associated standard errors are:[#D贷相关的标准错误是:]
rescale(pc = pc, std.err = se.pc, method = "duotrio")

## Can also do[#也可以做]
rescale(pd = c(.6,.7), std.err = c(.2, NA))
psyfun(2, method = "triangle")
psyinv(0.8, method = "twoAFC")
psyderiv(2, method = "duotrio")
pc2pd(0.7, 1/2)
pd2pc(0.3, 1/3)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-20 00:35 , Processed in 0.029940 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表