There is 'cov.wt'. (If you have univariate
data, then you need to use 'as.matrix'.)
On 01/02/2010 20:32, 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?
-tomas
Thomas Lumley Assoc. Professor, Biostatistics
tlum...@u.washington.edu University of Washington, Seattle
______________________________________________
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.
--
Patrick Burns
pbu...@pburns.seanet.com
http://www.burns-stat.com
(home of 'The R Inferno' and 'A Guide for the Unwilling S User')
______________________________________________
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.