Dear all, what function can be used to calculate weighted SD or/and SE? There's no such stuff in 'base' package. Best regards, A.A.Morkovin
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.> > Best regards, > A.A.MorkovinDavid Winsemius, MD Heritage Laboratories West Hartford, CT
????? ???????? wrote:> Dear all, > what function can be used to calculate weighted SD or/and SE? > > There's no such stuff in 'base' package.There's wtd.var() in the Hmisc package. Or you could make suitable use of stats::weighted.mean(). -Peter Ehlers> > Best regards, > A.A.Morkovin > > ______________________________________________ > R-help at 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.-- Peter Ehlers University of Calgary