tukeyPsi1(robustbase)
tukeyPsi1()所属R语言包:robustbase
Tukey's Bi-square Score (Psi) Function and Derivative
Tukey的双平方米的分数(PSI)功能及衍生工具
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Compute Tukey's bi-square score (psi) function, its first derivative or it's integral/“principal function”. This is scaled such that ψ'(0) = 1, i.e., psi(x) ~= x around 0.
计算Tukey的双方得分(PSI)功能,它的一阶导数或积分/“主要功能”。这是缩放那ψ'(0) = 1,即psi(x) ~= x在0附近。
用法----------Usage----------
tukeyPsi1(x, cc, deriv = 0)
参数----------Arguments----------
参数:x
numeric vector.
数字矢量。
参数:cc
tuning constant
时间常数
参数:deriv
integer in \{-1,0,1\} specifying the order of the derivative; the default, deriv = 0 computes the psi-function.
整数\{-1,0,1\}指定的顺序衍生工具,默认情况下,deriv = 0计算PSI功能。
值----------Value----------
a numeric vector of the same length as x.
一个数值向量作为x具有相同的长度。
注意----------Note----------
tukeyPsi1(x, d) and tukeyChi(x, d+1) are just re-scaled versions of each other (for d in -1:1), i.e.,
tukeyPsi1(x, d)和tukeyChi(x, d+1)只是重新缩放版本对方(d in -1:1),即,
for ν = 0,1,2.
ν = 0,1,2。
We use the name "tukeyPsi1", because tukeyPsi is reserved for a future &ldquosi Function” class object, see psiFunc.
我们使用的名称“tukeyPsi1”的,因为tukeyPsi是保留给未来的“防扩散安全功能”类的对象,请参阅psiFunc。
(作者)----------Author(s)----------
Matias Salibian-Barrera, Martin Maechler and Andreas Ruckstuhl
参见----------See Also----------
lmrob and tukeyChi; further anova.lmrob which needs the deriv = -1.
lmrob和tukeyChi;进一步anova.lmrob需要deriv = -1。
实例----------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,1,1))
x <- seq(-5, 5, length = 201)
cc <- 4.69 # as set by default in lmrob.control()[所订的默认情况下lmrob.control()]
plot. <- function(...) { plot(..., asp = 1); abline(h=0,v=0, col="gray", lty=3)}
plot.(x, tukeyPsi1(x, cc), type = "l", col = 2)
abline(0:1, lty = 3, col = "light blue")
plot.(x, tukeyPsi1(x, cc, deriv = -1), type = "l", col = 2)
plot.(x, tukeyPsi1(x, cc, deriv = 1), type = "l", col = 2); abline(h=1,lty=3)
mtext(sprintf("tukeyPsi1(x, c = %g, deriv), deriv = 0, -1, 1", cc),
outer = TRUE, font = par("font.main"), cex = par("cex.main"))
par(op)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|