

   effects {base}                               R Documentation

   EEffffeeccttss ffrroomm FFiitttteedd MMooddeell

   DDeessccrriippttiioonn::

        Returns (orthogonal) effects from a fitted (general-
        ized) regression model.  In case of a full rank n * p
        `model.matrix', the first p effects correspond to coef-
        ficients and the remaining n-p ones to residuals.

   UUssaaggee::

        effects(object, ...)
        effects.lm(object, set.sign=FALSE)

   AArrgguummeennttss::

     object: list; typically, the result of a model fitting
             function such as `lm'

   set.sign: logical ~~Describe `set.sign' here~~

   DDeettaaiillss::

        ...... FIXME ......

        This page is not complete yet!

   VVaalluuee::

        A (named) numeric vector of the same length as `residu-
        als'.  The first p values are labeled according to the
        corresponding coefficients, the remaining ones are
        unlabeled.

        The result currently has `class' `"coef"'.

        ...... FIXME ......

   SSeeee AAllssoo::

        `coef', `fitted', etc.

   EExxaammpplleess::

        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

