Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • A question on "pctile"

    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!
    Last edited by Bright Tree; 18 Mar 2020, 10:28.

  • #2
    Hi Bright,
    It isnt clear what is it that you want to do.
    If you can provide a small example of what EXACTLY you want to do, it may be easier to give you some advice.
    Fernando

    Comment

    Working...
    X