Announcement

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

  • Help with distplot.

    Hi All,

    I am trying to use the distplot to plot a reverse cumulative distribution graph, and to be able to identify the cut off point.

    I have tried the following:

    Code:
    distplot connected Weight if Weight > 3, reverse

    Thanks for your help in advance.

  • #2
    distplot is a user-written program from the Stata Journal, as you are asked to explain. Otherwise people might try something like your syntax and be puzzled that no such command is recognised if they have not downloaded the files. This is explained in FAQ Advice, Section 12.

    I have no idea what "cut off point" you are seeking, but

    1. You are there using an old version of the program. possibly even from the original 1999 publication. It should still work, but I'd advise updating by

    Code:
     
    search distplot
    and installing the most recent update visible.

    2. Something like this works to get reversed distribution plots:

    Code:
     
    sysuse auto
    distplot weight, reverse recast(connected)
    So, what's the question here?

    Comment


    • #3
      Hi Cox,

      Thank you for your help.

      I am trying to reproduce the below graph, and I noticed that the y-axis is a conditional probability and I would like to do the same

      Comment


      • #4
        I can't read your photo. (Again, note that the FAQ Advice warns about this.) distplot in effect shows probabilities of being less than, or more than, values in the distribution conditional on being selected for the calculation; if you want something different, you need something different.

        Comment

        Working...
        X