p.res.2x(sfsmisc)
p.res.2x()所属R语言包:sfsmisc
Stahel's Residual Plot against 2 X's
Stahel对2 X的残差图
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Plot Residuals (e.g., of a multiple linear regression)
图残差(例如,多元线性回归分析)
用法----------Usage----------
p.res.2x(x, y, z, restricted, size = 1, slwd = 1, scol = 2:3,
xlab = NULL, ylab = NULL, main = NULL,
xlim = range(x), ylim = range(y), ...)
参数----------Arguments----------
参数:x,y
numeric vectors of the same length specifying 2 covariates.
相同长度的指定2协变量的数值向量。
参数:z
numeric vector of same length as x and y, typically residuals.
数字向量的长度相同x和y,通常残差。
参数:restricted
positive value which truncates the size. The corresponding symbols are marked by stars.
积极值,截断的大小。以星号对应的符号标记。
参数:size
the symbols are scaled so that size is the size of the largest symbol in cm.
符号进行缩放,以便size是最大的符号的大小,单位:cm。
参数:slwd, scol
line width and color(s) for the residual segments. If scol has length 2 as per default, the two colors are used for positive and negative z values, respectively.
线宽度和颜色(s)为残余segments。如果scol根据默认的长度为2,正面和负面的z值的两种颜色,分别。
参数:xlab, ylab, main
axis labels, and title see title, each with a sensible default. To suppress, use, e.g., main = "".
轴标签,标题title,每一个明智的默认。为了抑制使用,例如,main = ""。
参数:xlim, ylim
the basic x- and y- axis extents, see plot.default. Note that these will be slightly extended such that segments are not cut off.
基本的x-和y-轴范围,请参阅plot.default。请注意,这些将略有延长,这样分部不会切断。
参数:...
further arguments passed to plot.
进一步的参数传递给plot。
Details
详细信息----------Details----------
........... ..........
........... ..........
(作者)----------Author(s)----------
Andreas Ruckstuhl in June 1991 and
Martin Maechler, in 1992, '94, 2003-4.
参考文献----------References----------
<h3>See Also</h3> <code>p.res.2fact</code>, <code>plot.lm</code>,
实例----------Examples----------
xx <- rep(1:10,7)
yy <- rep(1:7, rep(10,7))
zz <- rnorm(70)
p.res.2x(xx,yy,zz, restr = 2, main = "i.i.d. N(0,1) random residuals")
example(lm.influence, echo = FALSE)
mult.fig(2, marP=c(0,-1,-2,0), main="p.res.2x(*,*, residuals(lm.SR))")
with(LifeCycleSavings,
{ p.res.2x(pop15, ddpi, residuals(lm.SR), scol=c("red", "blue"))
p.res.2x(pop75, dpi, residuals(lm.SR), scol=2:1)
})
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|