The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: ROC curve - perfcurve?
Replies: 3   Last Post: Aug 28, 2013 2:24 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 25
Registered: 8/27/13
ROC curve - perfcurve?
Posted: Aug 27, 2013 4:07 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I would like to generate a ROC curve to be able to assess the goodness of fit of a logistic regression model I just fitted using glmfit.

I have "yfit" as a column vector (length n), giving me the counts of items predicted as being in the 'positive' state by the model according to a continuous explanatory variable X (n values);
Obviously "yobs" the actual counts of buildings - same vector characteristics as above.

However, perfcurve requires as input the individual cases, so if I understand correctly for each value of my continuous variable Xi (1<=i<=n), I would need to create a matrix of individual cases with 'labels' being my true class labels positive or negative, the scores or probabilities of being positive, and the posclass (i.e. positive)
It seems very long and impractical given that I already have counts.

Is there any way I can work directly with the total counts, both actual and predicted, for each Xi to generate the ROC curve instead of having to redecompose into individual instances? with this function or another one?

PS. I already tried to generated the rOC curve "by hand" using my counts rates but without success.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.