由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - How to do ROC curve in R?
相关主题
roc curve in R请教,ROC曲线可以应用于那些研究?
ROCR package in R - how to set cutting point?Anyone knows how to draw several ROC curves in one figure
ordered label in ROCRAUROC和PR-RC curve
Help:ROC from R请教ROC curve作图
Does anybody have experience on ROC curve?ROC curve可以用来比较变量吗
[R] ROC curve怎么指定cutoffs?How to do a Gain Chart in R with these data points?
R-square of logistic regression[求教] Classfication and regression tree in SAS
新手请教一个问题如果比较两个curve的形状是不是类是, 用什么方法
相关话题的讨论汇总
话题: roc话题: curve话题: do话题: prediction
进入Statistics版参与讨论
1 (共1页)
S******y
发帖数: 1123
1
I got my classfication prediction vs. observed table.
How to do ROC curve in R?
Many thanks!!!
A*****n
发帖数: 243
2
install the ROCR package fom CRAN

【在 S******y 的大作中提到】
: I got my classfication prediction vs. observed table.
: How to do ROC curve in R?
: Many thanks!!!

N**D
发帖数: 10322
3
write one

【在 S******y 的大作中提到】
: I got my classfication prediction vs. observed table.
: How to do ROC curve in R?
: Many thanks!!!

b*****a
发帖数: 905
4
這個我會:)
嗯。。怎麼跟你解釋呢。。。
b*****a
发帖数: 905
5
lz自己挑著看吧。
## Make a ROC plot to see the ration of the rate of false positives to the
rate of false negatives
library(ROCR)
ip.glm<-glm(votesum ~ clint96 + partyid + aflcio97 + ccoal98, data=ip,
family=binomial(link=logit))
summary(ip.glm)
names(ip.glm)
pred.object<-prediction(ip.glm$fitted.values, ip.glm$y)
perf.object<-performance(pred.object, "tpr", "fpr")
# use add=TRUE as an argument to the plot() function if you want to overlay
additional ROC plots.
# Compare the model with submodel (Democr
l*******l
发帖数: 204
6
Oh

【在 b*****a 的大作中提到】
: lz自己挑著看吧。
: ## Make a ROC plot to see the ration of the rate of false positives to the
: rate of false negatives
: library(ROCR)
: ip.glm<-glm(votesum ~ clint96 + partyid + aflcio97 + ccoal98, data=ip,
: family=binomial(link=logit))
: summary(ip.glm)
: names(ip.glm)
: pred.object<-prediction(ip.glm$fitted.values, ip.glm$y)
: perf.object<-performance(pred.object, "tpr", "fpr")

1 (共1页)
进入Statistics版参与讨论
相关主题
如果比较两个curve的形状是不是类是, 用什么方法Does anybody have experience on ROC curve?
How to account for variation within a data point?[R] ROC curve怎么指定cutoffs?
如果要把图中所示的数据做成一个smoothed curveR-square of logistic regression
R里面survival curve的问题, 包子贴新手请教一个问题
roc curve in R请教,ROC曲线可以应用于那些研究?
ROCR package in R - how to set cutting point?Anyone knows how to draw several ROC curves in one figure
ordered label in ROCRAUROC和PR-RC curve
Help:ROC from R请教ROC curve作图
相关话题的讨论汇总
话题: roc话题: curve话题: do话题: prediction