From p.dalgaard@kubism.ku.dk  Thu Oct  2 12:24:35 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 02 Oct 1997 13:24:35 +0200
Subject: R-alpha: R-beta: hat
In-Reply-To: Thomas Lumley's message of Wed, 1 Oct 1997 16:11:20 -0700 (PDT)
References: <Pine.SUN.3.95.971001160904.8966C-100000@troi>
Message-ID: <x2hgb0z9u4.fsf@bush.kubism.ku.dk>

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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


R-alpha: R-beta: hat
Peter Dalgaard BSA