residuals.lmList(nlme)
residuals.lmList()所属R语言包:nlme
Extract lmList Residuals
提取lmList残值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The residuals are extracted from each lm component of object and arranged into a list with as many components as object, or combined into a single vector.
残差从每个lmobject组件中提取和安排到一个列表中,许多组件object,或组合成一个单一的向量。
用法----------Usage----------
## S3 method for class 'lmList'
residuals(object, type, subset, asList, ...)
参数----------Arguments----------
参数:object
an object inheriting from class lmList, representing a list of lm objects with a common model.
从类继承的对象lmList,lm对象代表一个共同的模式列表。
参数:subset
an optional character or integer vector naming the lm components of object from which the residuals are to be extracted. Default is NULL, in which case all components are used.
lmobject从中提取残差组件命名一个可选字符或整数向量。默认值为NULL,在这种情况下,所有的组件都使用。
参数:type
an optional character string specifying the type of residuals to be extracted. Options include "response" for the "raw" residuals (observed - fitted), "pearson" for the standardized residuals (raw residuals divided by the estimated residual standard error) using different standard errors for each lm fit, and "pooled.pearson" for the standardized residuals using a pooled estimate of the residual standard error. Partial matching of arguments is used, so only the first character needs to be provided. Defaults to "response".
一个可选的字符串,指定要提取的残留物类型。选项包括的“原始”的残差"response"(观测 - 拟合),"pearson"标准化残差(估计剩余标准误差分为原料残渣),使用不同的标准误差为每个lm 适合,和"pooled.pearson"使用汇集的残留标准错误估计的标准化残差。使用部分匹配的参数,所以才有了第一个字符需要提供。 "response"默认。
参数:asList
an optional logical value. If TRUE, the returned object is a list with the residuals split by groups; else the returned value is a vector. Defaults to FALSE.
一个可选的逻辑值。如果TRUE,返回的对象是一个群体分裂的残差列表;否则返回值是一个向量。 FALSE默认。
参数:...
some methods for this generic require additional arguments. None are used in this method.
这个通用的一些方法需要额外的参数。没有使用这种方法。
值----------Value----------
a list with components given by the residuals of each lm component of object, or a vector with the residuals for all lm components of object.
每个lm组件object,或与所有lmobject组件的残差向量的残差组件列表。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参见----------See Also----------
lmList, fitted.lmList
lmList,fitted.lmList
举例----------Examples----------
fm1 <- lmList(distance ~ age | Subject, Orthodont)
residuals(fm1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|