Dear friends,
I want to generate the values of percentiles, 0-10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80.80-90,90-100. But pctile or _pctile might only generate 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80.80-90,90-100 percentiles. For example,
`` sysuse auto, clear
*Compute the deciles for weight and store then in r(r#)
_pctile weight, nq(10)
*List the stored results
return list
''
It only returns "10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80.80-90,90-100" percentiles.
. Is there any way?
Is the value at 0~10 percentile the minimum value?
Thank you a lot!
I want to generate the values of percentiles, 0-10, 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80.80-90,90-100. But pctile or _pctile might only generate 10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80.80-90,90-100 percentiles. For example,
`` sysuse auto, clear
*Compute the deciles for weight and store then in r(r#)
_pctile weight, nq(10)
*List the stored results
return list
''
It only returns "10-20, 20-30, 30-40, 40-50, 50-60, 60-70, 70-80.80-90,90-100" percentiles.
. Is there any way?
Is the value at 0~10 percentile the minimum value?
Thank you a lot!
Comment