Seite 1 von 1

ROC zeichnen

BeitragVerfasst: Do 7. Feb 2013, 10:33
von thopet
Werte Stata Freunde,

ich versuche eine ROC Kurve mit folgendem Befehl zu erstellen
rocfit var a var b
rocplot ,
graph save Dateipfad

var a ist mit 1 und 0 codiert; var b mit mehr als 20 Werten eines Scores. Der Score ist aufsteigend korrekt codiert, d.h. je schllimmer desto höher die Zahl. Genau an dieser Stelle bringt stata mir einen Fehler, dass es sich um mehr als 20 Werte handelt und fragt mich folgendes:

variable b has over 20 unique values; use continuous(#) to group
into # categories or continuous(.) if variable is already categorical

Sorry für die dumme Frage, aber was soll ich machen?

Re: ROC zeichnen

BeitragVerfasst: Do 7. Feb 2013, 11:24
von daniel
Es heißt immer, es gibt keine dummen Fragen. Die Frage ist allerdings welche Art von Antwort Du Dir eerhoffst. Stata sagt Dir relativ explizit, was Du tun sollst. Dazu steht im help file für -rocfit-

continuous(#) specifies that the continuous classvar be divided into # groups of
approximately equal length. The option is required when classvar takes on more than
20 distinct values.

continuous(.) may be specified to indicate that classvar be used as it is, even
though it could have more than 20 distinct values.


Was genau ist daran unklar?

Re: ROC zeichnen

BeitragVerfasst: Do 7. Feb 2013, 11:44
von thopet
Vielen Dank. Jetzt habe ich es auch verstanden. Die Lösung stand näher als erwartet.