[R] calculate variance with trimm mean

David Winsemius dwinsemius at comcast.net
Fri Nov 12 07:37:51 CET 2010


On Nov 12, 2010, at 1:07 AM, Jumlong Vongprasert wrote:

> Dear All
>    I have problem about calculte variance use R.
>    I use trimm mean by mean(x, trim=.05) and I want to calculate  
> variance
> with trimm=.05.
>    How I can do this.

methods(mean)

Why not take the code for mean.default and substitute var  
for .Internal( mean(x)) ?

> Many Thanks.
> Jumlong
>
> -- 
> Jumlong Vongprasert Assist, Prof.
> Institute of Research and Development
> Ubon Ratchathani Rajabhat University
-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list