About Calculating Quintiles
Posted: Mon Mar 19, 2012 2:12 am
I am writing programmes to calculate quintiles for a matrix. I found that @quantile maybe useful.
May I confirm that the following command can calculate 20% quintile with the name "quintile_1"?
xxx is the name of the matrix
I am not sure what I have done is correct because the answer is not the same when I calculate it in Excel by the function "percentile".
Thank you very much for your help!
May I confirm that the following command can calculate 20% quintile with the name "quintile_1"?
Code: Select all
scalar quintile_1 = @quantile(xxx, 0.2)I am not sure what I have done is correct because the answer is not the same when I calculate it in Excel by the function "percentile".
Thank you very much for your help!