qqnorm.lme(nlme)
qqnorm.lme()所属R语言包:nlme
Normal Plot of Residuals or Random Effects from an lme Object
从LME对象残差或随机效应的正常剧情
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Diagnostic plots for assessing the normality of residuals and random effects in 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.
诊断图,得到残差和随机效应的线性混合效应合适的常态评估。 form参数,给出了相当的灵活性,在图规范。调理表达(|运营商的右侧)总是意味着不同的面板用于每个调节因子的水平,根据一个网格显示器。
用法----------Usage----------
## S3 method for class 'lme'
qqnorm(y, form, abline, id, idLabels, grid, ...)
参数----------Arguments----------
参数:y
an object inheriting from class lme, representing a fitted linear mixed-effects model or from class lmList, representing a list of lm objects, or from class lm, representing a fitted linear model, or from class nls, representing a nonlinear least squares fitted model.
一个类继承的对象lme,占拟合线性混合效应模型或从类lmList,lm对象名单,或从类lm,较拟合线性模型,或从类nls,代表一个非线性最小二乘拟合模型。
参数:form
an optional one-sided formula specifying the desired type of plot. Any variable present in the original data frame used to obtain y can be referenced. In addition, y 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. The expression on the right hand side of form and to the left of a | operator must evaluate to a residuals vector, or a random effects matrix. Default is ~ resid(., type = "p"), corresponding to a normal plot of the standardized residuals evaluated at the innermost level of nesting.
可选片面的公式,指定所需的类型图。任何用于获取在原来的数据框的变量目前y可以参考。此外,y本身可以使用符号"."公式中引用。可以使用关于|运营商的权利的条件表达式定义在网格显示的独立小组。 form和|操作符左侧右侧的表达式必须评估1残差向量或矩阵随机效应。默认~ resid(., type = "p"),对应到一个正常的最内层嵌套水平评估的标准化残差图。
参数: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 (random effects). Observations with absolute standardized residuals (random effects) 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。如果作为一种片面的公式,它的右边必须评估一个被转换为字符和用来标记鉴定意见的向量。默认是内心的分组因素。
参数:grid
an optional logical value indicating whether a grid should be added to plot. Default is FALSE.
一个可选的逻辑值,该值指示网格是否应该被添加到图。默认FALSE。
参数:...
optional arguments passed to the Trellis plot function.
可选参数传递给格子绘图功能。
值----------Value----------
a diagnostic Trellis plot for assessing normality of residuals or random effects.
格子图评估残差或随机效应的正常诊断。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参见----------See Also----------
lme, plot.lme
lme,plot.lme
举例----------Examples----------
## Not run: [#无法运行:]
fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
# normal plot of standardized residuals by gender[按性别正常图标准化残差]
qqnorm(fm1, ~ resid(., type = "p") | Sex, abline = c(0, 1))
# normal plots of random effects[随机效应的正常图]
qqnorm(fm1, ~ranef(.))
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|