ROC zeichnen

Fragen zu Stata Syntax und Do-Files.

ROC zeichnen

Beitragvon thopet » Do 7. Feb 2013, 10:33

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?
thopet
 
Beiträge: 4
Registriert: Mi 6. Feb 2013, 15:21
Danke gegeben: 0
Danke bekommen: 0 mal in 0 Post

Re: ROC zeichnen

Beitragvon daniel » Do 7. Feb 2013, 11:24

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?
Stata is an invented word, not an acronym, and should not appear with all letters capitalized: please write “Stata”, not “STATA”.
daniel
 
Beiträge: 1060
Registriert: Sa 1. Okt 2011, 17:20
Danke gegeben: 0
Danke bekommen: 0 mal in 0 Post

Re: ROC zeichnen

Beitragvon thopet » Do 7. Feb 2013, 11:44

Vielen Dank. Jetzt habe ich es auch verstanden. Die Lösung stand näher als erwartet.
thopet
 
Beiträge: 4
Registriert: Mi 6. Feb 2013, 15:21
Danke gegeben: 0
Danke bekommen: 0 mal in 0 Post


Zurück zu Stata Syntax

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 2 Gäste