myplotDD(robustfa)
myplotDD()所属R语言包:robustfa
Distance-Distance Plot
距离 - 距离图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
"myplotDD" is a revised version of ".myddplot" in "plot-utils.R" in the package "rrcov". In "myplotDD", id.n and ind are printed out.
"myplotDD"是一个修订版本的".myddplot"中"plot-utils.R"包中的"rrcov"。在"myplotDD",id.n和ind是打印出来。
用法----------Usage----------
myplotDD(x, cutoff, id.n)
参数----------Arguments----------
参数:x
An S4 object of class "CovRobust".
S4对象的类"CovRobust"。
参数:cutoff
The cutoff value used. If missing, cutoff <- sqrt(qchisq(0.975, p)) by default.
cutoff使用的值。如果没有,cutoff <- sqrt(qchisq(0.975, p))默认情况下。
参数:id.n
Number of observations to identify by a label. If not supplied, the number of observations with robust distance larger than cutoff is used.
若干意见识别标签。如果未提供,具有强大的距离大于cutoff的观测。
Details
详细信息----------Details----------
Distance-Distance Plot: Plot the vector y=rd (robust distances) against x=md (mahalanobis distances). Identify by a label the id.n observations with largest rd. If id.n is not supplied, calculate it as the number of observations larger than cutoff. Use cutoff to draw a horisontal and a vertical line. Draw also a dotted line with a slope 1.
距离 - 距离图简介:简介向量y=rd(健壮的距离)对x=md(马氏)。识别一个标签的id.n观察与大rd。如果id.n不提供的,计算它的数量大于cutoff观测。使用cutoff到得出一个horisontal的的一条垂直线。绘制虚线的斜率1。
"myplotDD(x)" is equivalent to "plot(x, which="dd")". which: indicate what kind of plot. If which = "dd", then a distance-distance Plot.
"myplotDD(x)"是相当于"plot(x, which="dd")"。 which:什么样的图。如果which = "dd",然后一个距离 - 距离曲线。
值----------Value----------
A distance-distance plot is shown. Return a list with components:
一个距离 - 距离图所示。返回一个列表的组件:
参数:cutoff
The cutoff value used. If missing, cutoff <- sqrt(qchisq(0.975, p)) by default.
cutoff使用的值。如果没有,cutoff <- sqrt(qchisq(0.975, p))默认情况下。
参数:id.n
Number of observations to identify by a label. If not supplied, the number of observations with robust distance larger than cutoff is used.
若干意见识别标签。如果未提供,具有强大的距离大于cutoff的观测。
参数:sort.y
A list containing the sorted values of y (the robust distance)
一个列表,其中包含的y值排序(强劲的距离)
参数:ind
The indices of the largest id.n observations whose robust distances are larger than cutoff.
指数最大的id.n观察,其强大的距离是大于cutoff的。
(作者)----------Author(s)----------
Ying-Ying Zhang (Robert) <a href="mailto:robertzhang@cqu.edu.cn">robertzhang@cqu.edu.cn</a>
参考文献----------References----------
参见----------See Also----------
plot, qchisq, CovClassic, getDistance
plot,qchisq,CovClassic,getDistance
实例----------Examples----------
data(stock611)
covMcd=CovRobust(x=scale(stock611[,3:12]), control="mcd"); covMcd
## "myplotDD" shows id.n and ind.[“myplotDD”显示:id.n和ind。]
## Note: id.n and ind change each time due to covMcd changes each time![#注:id.n和ind改变,每次由于到covMcd的改变,每次!]
## However, the ind of largest robust distances do not change.[#然而,工业的最大健壮的距离不会改变。]
result = myplotDD(x=covMcd); result
## "myplotDD" is equivalent to "plot(x=covMcd, which="dd")".[“myplotDD”等同于“图(X = covMcd,”DD“)”。]
plot(x=covMcd, which="dd")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|