weight.funs(robust)
weight.funs()所属R语言包:robust
Weight Functions Psi, Rho, Chi
权函数幽,卢智
译者:生物统计家园网 机器人LoveR
描述----------Description----------
These functions compute the weights used by lmRob and its associated methods.
这些函数计算由lmRob和其相关联的方法所使用的权重。
用法----------Usage----------
psi.weight(x, ips = 1, xk = 1.06)
rho.weight(x, ips = 1, xk = 1.06)
psp.weight(x, ips = 1, xk = 1.06)
chi.weight(x, ips = 1, xk = 1.06)
参数----------Arguments----------
参数:x
a numeric vector.
一个数值向量。
参数:ips
integer determining the weight function:
确定的权重函数的整数:
ips = 1"optimal" ,
ips = 1“最优”,
ips = 2rescaled bisquare ,
ips = 2重新调整的bisquare
ips = 3Huber ,
ips = 3胡贝尔,
ips = 4smoothed Huber , which is currently only available for psi.*() and its derivative psp.*().
ips = 4胡贝尔,这是目前仅适用于psi.*()“及其衍生psp.*()平滑。
参数:xk
a numeric value specifying the tuning constant.
一个数值指定的时间常数。
Details
详细信息----------Details----------
See the section “Theoretical Details”, p. 58-59, in chapter 2 of "Robust.pdf".
请参阅“理论细节,P。 58-59,Robust.pdf在第2章。
值----------Value----------
a numeric vector, say r of the same length as x, containing the function values r[i] = f(x[i]).
一个数值向量,说r相同的长度为x,包含了函数值r[i] = f(x[i])。
参见----------See Also----------
wt.carroll
wt.carroll
实例----------Examples----------
x <- seq(-4,4, length=401)
f.x <- cbind(psi = psi.weight(x), psp = psp.weight(x),
chi = chi.weight(x), rho = rho.weight(x))
es <- expression(psi(x), {psi*minute}(x), chi(x), rho(x))
leg <- as.expression(lapply(seq_along(es), function(i)
substitute(C == E, list(C=colnames(f.x)[i], E=es[[i]]))))
matplot(x, f.x, type = "l", lwd = 1.5,
main = "psi.weight(.) etc -- 'optimal'")
abline(h = 0, v = 0, lwd = 2, col = "#D3D3D380") # opaque gray[D3D3D380“)#不透明的灰色]
legend("bottom", leg, inset = .01,
lty = 1:4, col = 1:4, lwd = 1.5, bg = "#FFFFFFC0")[FFFFFFC0“)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|