找回密码
 注册
查看: 696|回复: 0

R语言 segmented包 plot.segmented()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 00:22:34 | 显示全部楼层 |阅读模式
plot.segmented(segmented)
plot.segmented()所属R语言包:segmented

                                         Plot method for segmented objects  
                                         图分割对象的方法

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Takes a fitted segmented object returned by segmented() and plots (or adds) the fitted broken-line for the selected segmented term.
注意到一个装有segmented对象返回的segmented()图(或增加)的拟合虚线为选定的分段内。


用法----------Usage----------


## S3 method for class 'segmented'
plot(x, term, add=FALSE, res=FALSE, se=FALSE, show.gap=TRUE, link=TRUE,
      res.col=1,  rev.sgn=FALSE, const=0, ...)



参数----------Arguments----------

参数:x
a fitted segmented object.  
一个装有segmented对象。


参数:term
the segmented variable having the piece-wise relationship to be plotted. If there is a single segmented variable, term can be omitted.
要绘制分段变量关系的分段。如果有一个单一的分段变量,term的可以省略。


参数:add
when TRUE the fitted lines are added to the current device.
当TRUE拟合线添加到当前的设备。


参数:res
when TRUE the fitted lines are plotted along with corresponding partial residuals. See Details.
TRUE拟合线绘制与相应的局部残差。查看详细信息。


参数:se
when TRUE pointwise confidence intervals are drawn. Currently unimplemented.  
当TRUE逐点绘制置信区间。目前还没有实现。


参数:show.gap
when FALSE the (possible) gaps between the fitted lines at the estimated breakpoints are hidden.
当FALSE(可能的话)的估计断点的拟合线之间的差距被隐藏。


参数:link
when TRUE (default), the fitted lines are plotted on the link scale, otherwise they are tranformed on the response scale before plotting. Ignored for linear segmented fits.  
当TRUE(默认),拟合线绘制的链接尺度,否则他们质变之前绘制的响应规模。忽略的线性分段拟合。


参数:res.col
when res=TRUE it means the color of the points representing the partial residuals.
如果res=TRUE它是指部分残余点的颜色。


参数:rev.sgn
when TRUE it is assumed that current term is "minus" the actual segmented variable, therefore the sign is reversed before plotting. This is useful when a null-constraint has been set on the last slope.
当TRUE假设当前term是“减”的实际分段变量,因此该标志打印之前,拨回。这是非常有用的,在过去的斜坡上设置了一个空的约束时。


参数:const
constant to add to each fitted segmented relationship (on the scale of the linear predictor) before plotting.
常量添加到打印之前,每个都装有分割的关系(上规模的线性预测)。


参数:...
other graphics parameters to pass on to plotting commands: "col", "lwd" and "lty" (that can be vectors, see the example below) for the fitted piecewise lines; "ylab", "xlab", "main", "sub" when a new plot is produced (i.e. when add=FALSE); "pch" and "cex" for the partial residuals (when res=TRUE).  
其他的图形参数传递到绘图命令:“山坳”,“LWD”和“LTY(可以是向量,见下面的例子)的拟合分段线”; ylab,xlab ,主,子是一个新的绘图时(即当add=FALSE);“PCH”和“CEX部分残差(res=TRUE)。


Details

详细信息----------Details----------

Produces (or adds to the current device) the fitted segmented relationship between the response and the selected term. If the fitted model includes just a single "segmented" variable, term may be omitted. Due to the parameterization of the segmented terms, sometimes the fitted lines may not appear to join at the estimated breakpoints. If this is the case, the apparent "gap" would indicate some lack-of-fit. However such "gap" may be hidden by setting show.gap=FALSE: show.gap=TRUE is suggested only when the gap coefficients are nonsignificant, see summary.segmented(..)$gap. The partial residuals are computed as "fitted + residuals", where "fitted" are the fitted values of the segmented relationship. Notice that for GLMs the residuals are the response residuals if linkinv=TRUE and the working residuals weighted by the IWLS weights if linkinv=FALSE.
生成(或添加到当前设备)的响应速度和选定的term拟合分割之间的关系。如果拟合模型包括只是一个单一的“分段的”变量,term,也可以省略。由于分段条款的参数设置,有时拟合线可能不会出现要加入的估计断点。如果是这样的话,明显的“差距”,表明一些缺乏适合的。然而,这样的“差距”可能会被隐藏,通过设置show.gap=FALSE:show.gap=TRUE建议只有当系数是不显着的差距,看到summary.segmented(..)$gap。部分残余物会被计算为“装+残差,装的拟合值分割的关系。请注意,GLMS的残差是响应残差linkinv=TRUE和工作残差加权的IWLS权重,如果linkinv=FALSE。


值----------Value----------

None.
无。


(作者)----------Author(s)----------


Vito M.R. Muggeo



参见----------See Also----------

lines.segmented
lines.segmented


实例----------Examples----------


set.seed(1234)
z<-runif(100)
y<-rpois(100,exp(2+1.8*pmax(z-.6,0)))
o<-glm(y~z,family=poisson)
o.seg<-segmented(o,seg.Z=~z,psi=list(z=.5))
par(mfrow=c(1,2))
plot(o.seg)
plot(z,y)
## add the fitted lines using different colors and styles..[#添加的拟合线,用不同颜色和款式...]
plot(o.seg,add=TRUE,link=FALSE,lwd=2,col=2:3, lty=c(1,3))
lines(o.seg,col=2,pch=19,bottom=FALSE,lwd=2)

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2024-11-30 14:29 , Processed in 0.023157 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表