R-users
E-mail: r-help@r-project.org

   I have a quenstion on "gam()" in "gam" package.
The help of gam() says:
      'gam' uses the _backfitting
     algorithm_ to combine different smoothing or fitting methods.

On the other hand,  lm.wfit(), which is a routine of gam.fit() contains:

        z <- .Fortran("dqrls", qr = x * wts, n = n, p = p, y = y *
        wts, ny = ny, tol = as.double(tol), coefficients = mat.or.vec(p,
        ny), residuals = y, effects = mat.or.vec(n, ny), rank = integer(1),
        pivot = 1:p, qraux = double(p), work = double(2 * p),
        PACKAGE = "base")

It may indicate that QR decomposition is used to derive an additive model
instead of backfitting.
   I am wondering if my guess is correct, or this "the _backfitting
algorithm"
has another meaning.

   ********     E-mail: [EMAIL PROTECTED]     ********
***** http://cse.naro.affrc.go.jp/takezawa/intro.html *****

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to