R-alpha: R-beta: hat

Peter Dalgaard BSA p.dalgaard@kubism.ku.dk
02 Oct 1997 13:24:35 +0200


Thomas Lumley <thomas@biostat.washington.edu> writes:

> 
> 
> The hat() function, returning the diagonal of the hat matrix, currently
> works only on matrices and doesn't work with weights.  Could we make it
> return lm.influence(x)$hat when inherits(x,"lm")?

Shouldn't it be the other way around? i.e. lm.influence(x) sets $hat
to hat.lm(x)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-