effects {base} | R Documentation |
Returns (orthogonal) effects from a fitted (generalized) regression
model. In case of a full rank n * p
model.matrix
, the first p effects correspond to
coefficients and the remaining n-p ones to residuals.
effects(object, ...) effects.lm(object, set.sign=FALSE)
object |
list; typically, the result of a model fitting function
such as lm |
set.sign |
logical ~~Describe set.sign here~~ |
...... FIXME ......
This page is not complete yet!
A (named) numeric vector of the same length as
residuals
. The first p values are labeled
according to the corresponding coefficients, the remaining ones are
unlabeled.
The result currently has class
"coef"
.
...... FIXME ......
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