residuals.gls(nlme)
residuals.gls()所属R语言包:nlme
Extract gls Residuals
提取GLS残值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The residuals for the linear model represented by object are extracted.
线性模型为object代表残差提取。
用法----------Usage----------
## S3 method for class 'gls'
residuals(object, type, ...)
参数----------Arguments----------
参数:object
an object inheriting from class gls, representing a generalized least squares fitted linear model, or from class gnls, representing a generalized nonlinear least squares fitted linear model.
继承类类gls,代表装线性模型广义最小二乘,或从gnls,较广义非线性最小二乘拟合线性模型的对象。
参数:type
an optional character string specifying the type of residuals to be used. If "response", the "raw" residuals (observed - fitted) are used; else, 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 "response".
一个可选的字符串指定要使用的残差类型。如果"response",“原始”的残差(观测 - 拟合);否则,如果"pearson",标准化残差的(原料残差除以相应的标准误差);否则,如果 "normalized",用于归残差(标准化残差估计误差相关矩阵的逆平方根因素预乘)。使用部分匹配的参数,所以才有了第一个字符需要提供。 "response"默认。
参数:...
some methods for this generic function require additional arguments. None are used in this method.
这个泛型函数的一些方法需要额外的参数。没有使用这种方法。
值----------Value----------
a vector with the residuals for the linear model represented by object.
与为object为代表的线性模型的残差向量。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参见----------See Also----------
gls
gls
举例----------Examples----------
fm1 <- gls(follicles ~ sin(2*pi*Time) + cos(2*pi*Time), Ovary,
correlation = corAR1(form = ~ 1 | Mare))
residuals(fm1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|