rococo(rococo)
rococo()所属R语言包:rococo
Robust Gamma Rank Correlation Coefficient
强大的伽玛等级相关系数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute the robust gamma rank correlation coefficient
计算出强大的伽玛秩相关系数
用法----------Usage----------
rococo(x, y, similarity=c("linear", "exp", "gauss", "epstol", "classical"), tnorm="min", r=0)
参数----------Arguments----------
参数:x
a numeric vector; compulsory argument
一个数值向量,强制性的参数
参数:y
a numeric vector; compulsory argument; x and y need to have the same length
一个数值向量,强制性的参数,“x和y需要有相同的长度
参数:similarity
a character string or a character vector identifying which type of similarity measure to use; valid values are "linear" (default), "exp", "gauss", "epstol", and "classical" (abbreviations are allowed as long as they are unique). If similarity is a single string, the same similarity measure is taken for x and y. Different similarity measures can be used for x and y by supplying different similarity measures in similarity[1] and similarity[2]. Longer character vectors are allowed, but all but the first two entries are ignored.
一个字符串或者字符向量确定使用哪种类型的相似性度量,有效值为"linear"(默认),"exp","gauss","epstol",<X >(缩写允许的,只要它们是唯一的)。如果"classical"是一个字符串,采取同样的相似性度量similarity和x。不同的相似性措施,可用于y和xy和similarity[1]通过提供不同的相似性措施。较长的特征向量是允许的,但所有,但第2项将被忽略。
参数:tnorm
can be any of the following strings identifying a standard tnorm: "min" (minimum t-norm; default), "prod" (product t-norm), or lukasiewicz (Lukasiewicz t-norm); abbreviations are allowed as long as they are unique. Alternatively, tnorm can be a two-argument function defining a t-norm.
可以是任何确定的标准TNORM以下字符串:"min"(最小t-范;默认值),"prod"(产品T-范数),或lukasiewicz(Lukasiewicz三角范数) ;缩写都是允许的,只要它们是唯一的。另外,tnorm可以是一个带两个参数的函数定义t-模。
参数:r
numeric vector defining the tolerances to be used; if a single value is supplied, the same value is used both for x and y. If a vector is supplied, r[1] is used as tolerance for x and r[2] is used as tolerance for y. If the classical crisp similarity is used, the corresponding entry/entries in r is/are ignored. Negative values are not allowed. Zeroes have a special meaning: if an entry in r is 0, then the tolerance is automatically adapted to 10 percent of the interquartile range of the data.
数值向量定义要使用的公差;如果一个单一的值被提供时,使用相同的值x和y。如果一个向量,r[1]使用x和r[2]作为容忍y的宽容。使用,如果古典脆相似度,相应的条目/条目在r/被忽略。负值是不允许的。零点具有特殊的意义:如果r在0,然后公差自动调整到10%的四分位的数据范围。
Details
详细信息----------Details----------
rococo computes the robust gamma rank correlation coefficient of x and y according to the specified parameters (see literature for more details).
rococo计算出强大的伽玛秩相关系数的x和y根据指定的参数(更多详情,见文献)。
Note that rococo only works for x and y being numeric vectors, unlike the classical correlation measures implemented in cor which can also be computed for matrices or data frames.
请注意,rococo只适用于x和y数值向量,不像古典相关cor这也可以计算矩阵或数据框中实现的措施。
值----------Value----------
Upon successful completion, the function returns the robust gamma rank correlation coefficient.
成功完成后,该函数返回强大的伽玛秩相关系数。
(作者)----------Author(s)----------
Martin Krone & Ulrich Bodenhofer
<a href="mailto:rococo@bioinf.jku.at">rococo@bioinf.jku.at</a>
参考文献----------References----------
U. Bodenhofer and F. Klawonn (2008). Robust rank correlation coefficients on the basis of fuzzy orderings:
参见----------See Also----------
rococo.test
rococo.test
实例----------Examples----------
## create data[#创建数据]
f <- function(x)
{
if (x > 0.9) x - 0.9
else if (x < -0.9) x + 0.9
else 0
}
x <- rnorm(25)
y <- sapply(x, f) + rnorm(25, sd=0.1)
## compute correlation[#计算相关]
rococo(x, y, similarity="classical")
rococo(x, y, similarity="linear")
rococo(x, y, similarity=c("classical", "gauss"), r=c(0, 0.1))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|