由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - How to calculate the area under a curve if just know values of x and y?
相关主题
How to calculate Area Under the Effect Curve(AUEC)?problem in R again ... sorry
roc curve in R[合集] 怎么删除一些变量
[R] ROC curve怎么指定cutoffs?[合集] 请教一个percentile的问题 (SAS)
R-square of logistic regression请教一个关于R的问题
How to compute the area between my curve and diagonal lineblank lines /sas/data step
对比曲线的形状有什么方法吗?model simplex distribution
ROC curve可以用来比较变量吗请教个问题关于 default rate in profit calculation
expected survival curve in R如果比较两个curve的形状是不是类是, 用什么方法
相关话题的讨论汇总
话题: calculate话题: curve话题: under话题: area话题: score
进入Statistics版参与讨论
1 (共1页)
m**z
发帖数: 5
1
Who can help me with the question as in the title? Many thanks!
s*********e
发帖数: 1051
2
copied from my blog.
hth.
%macro roc(data = , score =, y = );
*******************************************;
* THIS MACRO IS TO CALCULATE AUC (AREA *;
* UNDER CURVE) USING TRAPEZOIDAL RULE *;
*-----------------------------------------*;
* INPUT PARAMETERS: *;
* DATA : INPUT DATASET *;
* SCORE: SCORE (HIGHER ==> BETTER) *;
* Y : 0/1 TARGET (1 ==> BAD) *;
*******************************************;

data _tmp1;
set &data;
wh
1 (共1页)
进入Statistics版参与讨论
相关主题
如果比较两个curve的形状是不是类是, 用什么方法How to compute the area between my curve and diagonal line
How to account for variation within a data point?对比曲线的形状有什么方法吗?
如果要把图中所示的数据做成一个smoothed curveROC curve可以用来比较变量吗
R里面survival curve的问题, 包子贴expected survival curve in R
How to calculate Area Under the Effect Curve(AUEC)?problem in R again ... sorry
roc curve in R[合集] 怎么删除一些变量
[R] ROC curve怎么指定cutoffs?[合集] 请教一个percentile的问题 (SAS)
R-square of logistic regression请教一个关于R的问题
相关话题的讨论汇总
话题: calculate话题: curve话题: under话题: area话题: score