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

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

[复制链接]
发表于 2012-2-16 20:07:21 | 显示全部楼层 |阅读模式
plot.lme(nlme)
plot.lme()所属R语言包:nlme

                                        Plot an lme or nls object
                                         绘制LME或免入息审查贷款计划的对象

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

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

Diagnostic plots for the linear mixed-effects fit 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).
线性混合效应合适的诊断图。 form参数,给出了相当的灵活性,在图规范。调理表达(|运营商的右侧)总是意味着不同的面板用于每个调节因子的水平,根据一个网格显示器。 form如果是一种片面的公式,公式右边的变量的直方图,前|运营商,都显示(网格功能histogram使用)。如果form的是双面的,其左边和右边的变量是数字显示,散点图(网格功能xyplot使用)。最后,如果form是双面的,其左侧有侧变量是一个因素,右手由左侧变量的水平侧可变的方块图显示(网格功能bwplot 使用)。


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


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



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

参数:x
an object inheriting from class lme, representing a fitted linear mixed-effects model, or from nls, representing an fitted nonlinear least squares model.
一个对象,继承类lme代表拟合的线性混合效应模型,或从nls,代表拟合非线性最小二乘模型。


参数: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 = "p") ~ fitted(.) , corresponding to a plot of the standardized residuals versus fitted values, both evaluated at the innermost level of nesting.  
一个可选的公式,指定所需的类型图。任何用于获取在原来的数据框的变量目前x可以参考。此外,x本身可以使用符号"."公式中引用。可以使用关于|运营商的权利的条件表达式定义在网格显示的独立小组。默认是resid(., type = "p") ~ 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, or normalized residuals. Observations with absolute standardized (normalized) 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 the innermost grouping factor.
一个可选的向量,或片面的公式。如果作为向量,它被转换为字符,用来标记的意见确定id。如果作为一种片面的公式,它的右边必须评估一个被转换为字符和用来标记鉴定意见的向量。默认是内心的分组因素。


参数:idResType
an optional character string specifying the type of residuals to be used in identifying outliers, when id is a numeric value. If "pearson", the standardized residuals (raw  residuals divided by the corresponding standard errors) are used; else, if "normalized", the normalized residuals (standardized residuals pre-multiplied by the inverse square-root factor of the estimated error correlation matrix) are used. Partial matching of arguments is used, so only the first character needs to be provided. Defaults to "pearson".   
一个可选的字符的字符串,指定可用于识别离群残差类型,当id是一个数值。如果"pearson",标准化残差的(原料残差除以相应的标准误差);否则,如果"normalized",归残差(标准化残差的反平方根因素预先乘以估计误差相关矩阵)。使用部分匹配的参数,所以才有了第一个字符需要提供。 "pearson"默认。


参数: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----------

lme, xyplot,
lme,xyplot


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


fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
# standardized residuals versus fitted values by gender[标准化残差与拟合值按性别]
plot(fm1, resid(., type = "p") ~ fitted(.) | Sex, abline = 0)
# 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-24 15:30 , Processed in 0.027050 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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