residuals.lmeStruct(nlme)
residuals.lmeStruct()所属R语言包:nlme
Calculate lmeStruct Residuals
计算lmeStruct残值
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The residuals at level i are obtained by subtracting the fitted values at that level from the response vector. The fitted values at level i are obtained by adding together the population fitted values (based only on the fixed effects estimates) and the estimated contributions of the random effects to the fitted values at grouping levels less or equal to i.
水平i残差得到的响应向量减去在该级别的拟合值。级的拟合值i得到的人口加在一起在分组级别以下的拟合值拟合值(只对固定效应估计为基础)和随机效应的估计捐款或等于<X >
用法----------Usage----------
## S3 method for class 'lmeStruct'
residuals(object, level, conLin, lmeFit, ...)
参数----------Arguments----------
参数:object
an object inheriting from class lmeStruct, representing a list of linear mixed-effects model components, such as reStruct, corStruct, and varFunc objects.
lmeStruct,较线性混合效应模型组件的列表,如reStruct,corStruct,varFunc对象,对象类继承。
参数:level
an optional integer vector giving the level(s) of grouping to be used in extracting the residuals from object. Level values increase from outermost to innermost grouping, with level zero corresponding to the population fitted values. Defaults to the highest or innermost level of grouping.
可选的整数向量分组被用于从object提取残差的水平(S)。水平值增加从最外层到最内层的分组,相应的人口拟合值与零级。默认分组的最高或最内层水平。
参数:conLin
an optional condensed linear model object, consisting of a list with components "Xy", corresponding to a regression matrix (X) combined with a response vector (y), and "logLik", corresponding to the log-likelihood of the underlying lme model. Defaults to attr(object, "conLin").
一个可选的简明线性模型中的对象,包括一个组件列表"Xy",相应的回归矩阵(X)结合响应矢量(y),"logLik"相应LME底层模型日志的可能性。 attr(object, "conLin")默认。
参数:lmeFit
an optional list with components beta and b containing respectively the fixed effects estimates and the random effects estimates to be used to calculate the residuals. Defaults to attr(object, "lmeFit").
可选组件列表beta和b分别包含固定效应估计和随机效应估计被用来计算残差。 attr(object, "lmeFit")默认。
参数:...
some methods for this generic accept optional arguments.
这个通用的一些方法都接受可选参数。
值----------Value----------
if a single level of grouping is specified in level, the returned value is a vector with the residuals at the desired level; else, when multiple grouping levels are specified in level, the returned object is a matrix with columns given by the residuals at different levels.
如果单级的分组中指定level,返回值是所期望的水平残差向量;否则,当多个分组级别指定level,返回的对象是一个矩阵通过残差列在不同的层次。
注意----------Note----------
This method function is primarily used within the lme function.
此方法的功能主要是用来在lme功能。
作者(S)----------Author(s)----------
Jose Pinheiro and Douglas Bates <a href="mailto:bates@stat.wisc.edu">bates@stat.wisc.edu</a>
参见----------See Also----------
lme, residuals.lme,
lme,residuals.lme
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|