tukeyChi(robustbase)
tukeyChi()所属R语言包:robustbase
Tukey's "Chi", the Bi-square Loss (Rho) Function
杜克的“志”,双方的损失(RHO)功能
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Computes Tukey's bi-square loss function, chi(x) and its first two derivatives. Note that in the general context of M-estimators, these loss functions are called rho-functions.
计算Tukey的双平方损失功能,chi(x)的和其前两个衍生物。请注意,在一般情况M估计,这些损失函数被调用rho功能。
用法----------Usage----------
tukeyChi(x, cc, deriv = 0)
参数----------Arguments----------
参数:x
numeric vector.
数字矢量。
参数:cc
tuning constant
时间常数
参数:deriv
integer in \{0,1,2\} specifying the order of the derivative; the default, deriv = 0 computes the chi- (or rho-)function.
整数\{0,1,2\}指定的顺序衍生工具,默认情况下,deriv = 0计算卡(或Rho)功能。
值----------Value----------
a numeric vector of the same length as x.
一个数值向量作为x具有相同的长度。
注意----------Note----------
tukeyChi(x, d) and tukeyPsi1(x, d-1) are just re-scaled versions of each other (for d in 0:2).
tukeyChi(x, d)和tukeyPsi1(x, d-1)只是相互的重新缩放版本(d in 0:2)。
(作者)----------Author(s)----------
Matias Salibian-Barrera and Martin Maechler
参见----------See Also----------
lmrob and tukeyPsi1.
lmrob和tukeyPsi1。
实例----------Examples----------
op <- par(mfrow = c(3,1), oma = c(0,0, 2, 0),
mgp = c(1.5, 0.6, 0), mar= .1+c(3,4,3,2))
x <- seq(-2.5, 2.5, length = 201)
cc <- 1.55 # as set by default in lmrob.control()[所订的默认情况下lmrob.control()]
plot. <- function(...) { plot(...); abline(h=0,v=0, col="gray", lty=3)}
plot.(x, tukeyChi(x, cc), type = "l", col = 2)
plot.(x, tukeyChi(x, cc, deriv = 1), type = "l", col = 2)
plot.(x, tukeyChi(x, cc, deriv = 2), type = "l", col = 2)
mtext(sprintf("tukeyChi(x, c = %g, deriv), deriv = 0,1,2", cc),
outer = TRUE, font = par("font.main"), cex = par("cex.main"))
par(op)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|