是这样的 ROC需要sensitivity和specificity
在Epidemiological study里非常常用的分析
一般来说你的state variable是0,1这样的数据 比如二项logistic回归的response 就是这样的
而test variable就是你想检测的exposure
一般情况下 这个test variable放入0-1的countinuous variable可以得到更平滑的曲线
而且你还要放如value of state variable 这个就是你感兴趣的case
比如在response里 0代表control 1代表case=感染
你想观察exposure对case的风险 就在value of state variable放入1
大概的methods是这样 不过具体问题具体分析~