I am using the "quantile" function of R for calculating the percentiles of my dataset. But i am confused due to the different mean values returned by following commands.
mean(quantile(DataSet$V3, prob=c(5,50,95)/100,type=8));
It gives me 101.26
mean(quantile(DataSet$V3,type=8));
It gives me 105.27
And
mean(DataSet$V3);
It gives me 109.9
I will be really thankful if some one could answer me that why the mean values are different in three cases.
Regards, Zoraze