Support for Functions gam(), lm()
USAGE:
lm.wfit(x, y, w, method, ...)
This is support for the functions gam() and lm(). It is not intended to be called directly by users.