Announcement

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

  • Thresholds displayed on ROC Curve

    I'm graphing a binary variable on a 7-category variable, and I'd like the 7 categories to be labeled on the plot- any advice? I'm using the following code, then graph Editor.

    roctab SAMWHZ GAMMUAC_severity, binomial detail table graph summary
    Code:
    Click image for larger version

Name:	graph1.png
Views:	1
Size:	110.1 KB
ID:	1584689

  • #2
    Your points on the bottom left-hand corner are so clumped up together, it is hard to see how the labels will be legible. Here is a way to do it (highlighted)

    Code:
    sysuse auto, clear
    lab define rep78 1 "Poor"  2 "Fair" 3 "Average" 4 "Good" 5 "Excellent"
    lab values rep78 rep78
    decode rep78, gen(labels)
    roctab foreign rep78, binomial detail table graph summary plotopts(mlab(labels)) xsc(r(. 1.1))
    In your case, decode GAMMUAC_Severity. If labels overlap, look at

    Code:
    help marker_label_options
    for possible remedies. If nothing helps, you can insert the labels manually using the text option within plotopts().

    Res.:

    Click image for larger version

Name:	Graph.png
Views:	1
Size:	29.2 KB
ID:	1584721

    Comment

    Working...
    X