Announcement

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

  • Is there any command or method to smooth ROC curve?

    Hi,

    I have a roc curve that looks like a stairs, and would like to smooth it out for better presentation. I have searched and found a paper talked about command roccurve but it seems not working as it old one. Is there any command or technique to do that?

    This is how the ROC curve looks like!

    Thanks

    Click image for larger version

Name:	pppp.PNG
Views:	1
Size:	61.1 KB
ID:	1603818

  • #2
    I'm not having any problem using -roccurve-; note that it is not a built-in command and must be downloaded and installed; have you done that? if not, use -search- to find and download/install; be sure to use the "genrocvars" option

    why do you think that a smooth curve would be better for presentation?

    Comment


    • #3
      Well, I have installed but still give me an error message "command roccurve is unrecognized" ! I am not sure what do you mean about "genrocvars" option could you please elaborate more?

      I used the command as follows:
      roccurve disease_var var1 var2 if group=1

      Any thoughts?

      Comment


      • #4
        my guess is that somehow it got installed incorrectly; you need to find where roccurve.ado (and its accompanying help file are); start within Stata with
        Code:
        which roccurve
        but my guess is that you will need to re-install correctly (along the adopath) see
        Code:
        help adopath
        the "genrocvars" option won't help you until you actually have the program in a usable form; at that point,
        Code:
        help roccurve
        will give you help on this option

        how did you "install" the program (i.e., what steps did you go through)?

        Comment

        Working...
        X