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

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

[复制链接]
发表于 2012-2-17 10:00:02 | 显示全部楼层 |阅读模式
plot.lmList(nlme)
plot.lmList()所属R语言包:nlme

                                        Plot an lmList Object
                                         绘制一条lmList对象

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

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

Diagnostic plots for the linear model fits corresponding to the x  components are obtained. The form argument gives considerable flexibility in the type of  plot specification. A conditioning expression (on the right side of a  | operator) always implies that different panels are used for  each level of the conditioning factor, according to a Trellis  display. If form is a one-sided formula, histograms of the  variable on the right hand side of the formula, before a |  operator, are displayed (the Trellis function histogram is  used). If form is two-sided and both its left and  right hand side variables are numeric, scatter plots are displayed  (the Trellis function xyplot is used). Finally, if form  is two-sided and its left had side variable is a factor, box-plots of  the right hand side variable by the levels of the left hand side  variable are displayed (the Trellis function  bwplot is used).  
符合线性模型的诊断图得到相应的x组件。 form参数,给出了相当的灵活性,在图规范。调理表达(|运营商的右侧)总是意味着不同的面板用于每个调节因子的水平,根据一个网格显示器。 form如果是一种片面的公式,公式右边的变量的直方图,前|运营商,都显示(网格功能histogram使用)。如果form的是双面的,其左边和右边的变量是数字显示,散点图(网格功能xyplot使用)。最后,如果form是双面的,其左侧有侧变量是一个因素,右手由左侧变量的水平侧可变的方块图显示(网格功能bwplot 使用)。


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


## S3 method for class 'lmList'
plot(x, form, abline, id, idLabels, grid, ...)



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

参数:x
an object inheriting from class lmList, representing a list of lm objects with a common model.
从类继承的对象lmList,lm对象代表一个共同的模式列表。


参数:form
an optional formula specifying the desired type of plot. Any variable present in the original data frame used to obtain x can be referenced. In addition, x itself can be referenced in the formula using the symbol ".". Conditional expressions on the right of a | operator can be used to define separate panels in a Trellis display. Default is resid(., type = "pool") ~ fitted(.) , corresponding to a plot of the standardized residuals (using a pooled estimate for the residual standard error) versus fitted values.   
一个可选的公式,指定所需的类型图。任何用于获取在原来的数据框的变量目前x可以参考。此外,x本身可以使用符号"."公式中引用。可以使用关于|运营商的权利的条件表达式定义在网格显示的独立小组。默认是resid(., type = "pool") ~ fitted(.) ,对应的标准化残差与拟合值(使用汇总估计为剩余标准误差)的图。


参数:abline
an optional numeric value, or numeric vector of length two. If given as a single value, a horizontal line will be added to the plot at that coordinate; else, if given as a vector, its values are used as the intercept and slope for a line added to the plot. If missing, no lines are added to the plot.  
一个可选的数字值,或长度为二的数字向量。如果作为一个单一的价值,一个水平线将被添加到该坐标的图,否则,如果作为向量,其值添加到图线的截距和斜率。如果缺少,没有行被添加到图。


参数:id
an optional numeric value, or one-sided formula. If given as a value, it is used as a significance level for a two-sided outlier test for the standardized residuals. Observations with absolute standardized residuals greater than the 1 - value/2 quantile of the standard normal distribution are identified in the plot using idLabels. If given as a one-sided formula, its right hand side must evaluate to a  logical, integer, or character vector which is used to identify observations in the plot. If missing, no observations are identified.  
一个可选的数字值,或片面的公式。如果作为一种价值,它是用来作为显着性水平为两双面离群测试,为标准化残差。绝对比1 - value/2的标准正态分布的分位数的标准化残差的意见,确定在使用idLabels图。如果作为一种片面的公式,其右边必须评估逻辑,整数或字符的向量,这是用来确定在图的意见。如果缺少任何意见确定。


参数:idLabels
an optional vector, or one-sided formula. If given as a vector, it is converted to character and used to label the observations identified according to id. If given as a one-sided formula, its right hand side must evaluate to a vector which is converted to character and used to label the identified observations. Default is getGroups(x).   
一个可选的向量,或片面的公式。如果作为向量,它被转换为字符,用来标记的意见确定id。如果作为一种片面的公式,它的右边必须评估一个被转换为字符和用来标记鉴定意见的向量。默认getGroups(x)。


参数:grid
an optional logical value indicating whether a grid should be added to plot. Default depends on the type of Trellis plot used: if xyplot defaults to TRUE, else defaults to FALSE.  
一个可选的逻辑值,该值指示网格是否应该被添加到图。默认值取决于使用的格子图类型:如果xyplotTRUE,否则默认的默认FALSE的。


参数:...
optional arguments passed to the Trellis plot function.
可选参数传递给格子绘图功能。


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

a diagnostic Trellis plot.
诊断网格图。


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


Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>



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

lmList,predict.lm, xyplot, bwplot, histogram
lmList,predict.lm,xyplot,bwplot,histogram


举例----------Examples----------


fm1 <- lmList(distance ~ age | Subject, Orthodont)
# standardized residuals versus fitted values by gender[标准化残差与拟合值按性别]
plot(fm1, resid(., type = "pool") ~ fitted(.) | Sex, abline = 0, id = 0.05)
# box-plots of residuals by Subject[按主题残差的方块图]
plot(fm1, Subject ~ resid(.))
# observed versus fitted values by Subject[观察与拟合值定价]
plot(fm1, distance ~ fitted(.) | Subject, abline = c(0,1))

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 01:01 , Processed in 0.036793 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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