[R] Weighted SD
    Peter Dalgaard 
    p.dalgaard at biostat.ku.dk
       
    Mon Feb  1 23:10:58 CET 2010
    
    
  
Thomas Lumley wrote:
> On Mon, 1 Feb 2010, David Winsemius wrote:
> 
>>
>> On Feb 1, 2010, at 12:37 PM, Антон Морковин wrote:
>>
>>> Dear all,
>>> what function can be used to calculate weighted SD or/and SE¿
>>>
>>> There's no such stuff in 'base' package.
>>
>> Seems as though lm with a weights argument could be used fairly simply.
>>
> 
> As I have pointed out from time to time, it depends on what the weights 
> are for -- are they precision weights, which lm() can handle, or 
> sampling weights, which it can't?
... or, for completeness, replication weights, which can be handled by 
explicit case replication, but not using the weights= argument.
-- 
    O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907
    
    
More information about the R-help
mailing list