How we can use the function prctile?
12 views (last 30 days)
Show older comments
The goal is to seperate the value of "montant depot" into quintiles I can't understand this code taille=1*(montant_depot<=prctile(montant_depot,20))+... 2*(montant_depot>prctile(montant_depot,20) & montant_depot<=prctile(montant_depot,40))+... 3*(montant_depot>prctile(montant_depot,40) & montant_depot<=prctile(montant_depot,60))+... 4*(montant_depot>prctile(montant_depot,60) & montant_depot<=prctile(montant_depot,80))+... 5*(montant_depot>prctile(montant_depot,80)); up_taille=grpstats(underpricing,taille,'mean');
I use this one instead the other Sep_centile = prctile(montant depot,[20,20,20,20,20])
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!