pairs.lme(nlme)
pairs.lme()所属R语言包:nlme
Pairs Plot of an lme 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. The expression on the right hand side of the formula, before a | operator, must evaluate to a data frame with at least two columns. If the data frame has two columns, a scatter plot of the two variables is displayed (the Trellis function xyplot is used). Otherwise, if more than two columns are present, a scatter plot matrix with pairwise scatter plots of the columns in the data frame is displayed (the Trellis function splom is used).
线性混合效应合适的诊断图。 form参数,给出了相当的灵活性,在图规范。调理表达(|运营商的右侧)总是意味着不同的面板用于每个调节因子的水平,根据一个网格显示器。公式右边的表达,|运营商之前,必须评估一个至少有两列的数据框。如果数据框有两列,显示(网格功能xyplot使用)的两个变量的散点图。否则,如果存在两个以上的列,在数据框中的列的成对散点图散点图矩阵显示(网格功能splom使用)。
用法----------Usage----------
## S3 method for class 'lme'
pairs(x, form, label, id, idLabels, grid, ...)
参数----------Arguments----------
参数:x
an object inheriting from class lme, representing a fitted linear mixed-effects model.
一个对象从lme类代表拟合的线性混合效应模型,继承。
参数:form
an optional one-sided 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. The expression on the right hand side of form, and to the left of the | operator, must evaluate to a data frame with at least two columns. Default is ~ coef(.) , corresponding to a pairs plot of the coefficients evaluated at the innermost level of nesting.
可选片面的公式,指定所需的类型图。任何用于获取在原来的数据框的变量目前x可以参考。此外,x本身可以使用符号"."公式中引用。可以使用关于|运营商的权利的条件表达式定义在网格显示的独立小组。右侧的表达form,左|运营商,必须评估一个至少有两列的数据框。默认~ coef(.) ,相应的最内层嵌套水平评估系数对图。
参数:label
an optional character vector of labels for the variables in the pairs plot.
在对图的变量标签可选的特征向量。
参数:id
an optional numeric value, or one-sided formula. If given as a value, it is used as a significance level for an outlier test based on the Mahalanobis distances of the estimated random effects. Groups with random effects distances greater than the 1-value percentile of the appropriate chi-square 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 points in the plot. If missing, no points are identified.
一个可选的数字值,或片面的公式。如果作为一种价值,它是用来作为一个显着水平根据离群测试,估计随机效应的马氏距离。组随机效应1-value适当的卡方分布的百分距离比确定在使用idLabels图。如果作为一种片面的公式,其右边必须评估逻辑,整数或字符的向量,这是用来确定在图点。如果缺少,没有点确定。
参数:idLabels
an optional vector, or one-sided formula. If given as a vector, it is converted to character and used to label the points 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 points. 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.
诊断网格图。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参见----------See Also----------
lme, pairs.compareFits, pairs.lmList, xyplot, splom
lme,pairs.compareFits,pairs.lmList,xyplot,splom
举例----------Examples----------
fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
# scatter plot of coefficients by gender, identifying unusual subjects[按性别系数,确定不同寻常的科目散点图]
pairs(fm1, ~coef(., augFrame = TRUE) | Sex, id = 0.1, adj = -0.5)
# scatter plot of estimated random effects[估计随机效应的散点图]
## Not run: [#无法运行:]
pairs(fm1, ~ranef(.))
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|