<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ## ROC曲線 ### 應用場景 評估某個指標預測某項事件的性能,診斷的特異性和靈敏性,比如以基因的表達預測tumor和normal的特異性和靈敏性 > 使用數據格式如下圖 ![data format](http://kancloud.nordata.cn/2018-12-30-074442.png) ```R load('./roc_test.Rdata') #rt ### 計算給予TP53表達判斷tumor和normal的特異性和靈敏性 roc_pt <- roc(rt_roc$group, rt_roc$TP53) AUC_val <- round(as.numeric(roc_pt$auc), digits = 3)#獲取AUC的值 mat_roc <- data.frame(cbind(roc_pt$specificities, roc_pt$sensitivities), stringsAsFactors = FALSE) colnames(mat_roc) <- c('specificities', 'sensitivities') ``` > 作圖 ```R library(ggplot2) library(pROC) ggplot(mat_roc, aes(1- specificities, sensitivities)) + geom_point() + geom_abline(linetype="dashed", color = "grey") + annotate(geom="text", x = 0.75, y = 0.25, label = paste ('AUC = ' , AUC_val, sep = "" )) + theme_bw() # 將點換成線 # geom_line()做切換 ggplot(mat_roc, aes(1- specificities, sensitivities)) + geom_line(size = 1.5, colour = 'blue') + geom_abline(linetype="dashed", color = "grey") + annotate(geom="text", x = 0.75, y = 0.25, label = paste ('AUC = ' , AUC_val, sep = "" )) + theme_bw() ``` ![ROC1](http://kancloud.nordata.cn/2018-12-30-074443.png)![ROC2](http://kancloud.nordata.cn/2018-12-30-74444.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看