Re: [R] Statistics for the Grouped data

2007-11-06 Thread John Kane
Hi Shubha, Have a look at the Hmisc package and try ?wtd.mean as the help command. This may be what you need. Also you might want to look at ?summerize in the Hmisc package. --- Shubha Vishwanath Karanth <[EMAIL PROTECTED]> wrote: > Hi R, > > > > I have the data, > > > > Value > >

[R] Statistics for the Grouped data

2007-11-06 Thread Shubha Vishwanath Karanth
Hi R, I have the data, Value 0 1 2 3 4 5 6 Frequency: 258 125 106 94 85 12 5 Say: Value=c(0,1,2,3,4,5,6) Frequency=c(258,125,106,94,85,12,5) In R, how can I find the mean, variance, skewness and kurtosis for this grouped data? Is there a direct way of handling th