effects(stats)
effects()所属R语言包:stats
Effects from Fitted Model
从拟合模型的影响
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns (orthogonal) effects from a fitted model, usually a linear model. This is a generic function, but currently only has a methods for objects inheriting from classes "lm" and "glm".
返回(正交)从拟合模型,通常是一个线性模型的影响。这是一个通用的功能,但目前只有一个方法类"lm"和"glm"继承对象。
用法----------Usage----------
effects(object, ...)
## S3 method for class 'lm'
effects(object, set.sign = FALSE, ...)
参数----------Arguments----------
参数:object
an R object; typically, the result of a model fitting function such as lm.
R对象,通常情况下,模型拟合函数lm的结果。
参数:set.sign
logical. If TRUE, the sign of the effects corresponding to coefficients in the model will be set to agree with the signs of the corresponding coefficients, otherwise the sign is arbitrary.
逻辑。 TRUE如果,模型系数的影响,相应的标志将设置相应系数的迹象同意,否则符号是任意的。
参数:...
arguments passed to or from other methods.
参数传递或其他方法。
Details
详情----------Details----------
For a linear model fitted by lm or aov, the effects are the uncorrelated single-degree-of-freedom values obtained by projecting the data onto the successive orthogonal subspaces generated by the QR decomposition during the fitting process. The first r (the rank of the model) are associated with coefficients and the remainder span the space of residuals (but are not associated with particular residuals).
对于lm或aov装有线性模型,其影响是互不相关的单度的自由,在装修过程中产生的QR分解的连续正交子空间投影到数据得到的值。第一r(模型级)的相关系数和残差空间(其余跨度,但不特别残值)。
Empty models do not have effects.
空模型没有影响。
值----------Value----------
A (named) numeric vector of the same length as residuals, or a matrix if there were multiple responses in the fitted model, in either case of class "coef".
(命名)数字矢量residuals,或矩阵拟合模型中,如果有多个响应的长度相同,在任一类"coef"的情况下。
The first r rows are labelled by the corresponding coefficients, and the remaining rows are unlabelled. Note that in rank-deficient models the corresponding coefficients will be in a different order if pivoting occurred.
第一r行标有相应的系数,未标示剩余的行。请注意,相应的系数排名缺陷的模型将在不同的顺序,如果枢轴发生。
参考文献----------References----------
Statistical Models in S. Wadsworth & Brooks/Cole.
参见----------See Also----------
coef
coef
举例----------Examples----------
y <- c(1:3,7,5)
x <- c(1:3,6:7)
( ee <- effects(lm(y ~ x)) )
c( round(ee - effects(lm(y+10 ~ I(x-3.8))), 3) )
# just the first is different[第一是不同的]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|