[問題] 關於 odds ratio 4 種計算方法
請問一下
我跑 R 的某個 odds ratio 的 function 時
package :: epitools
function : oddsratio()
內部有4種算法可供選擇
method = c("midp", "fisher", "wald", "small")
我拿了以下的資料去測試
----------------------------
CONTROL CASE |
不吸菸 10 10 |
吸菸 10 50 |
----------------------------
發現 OR 的計算結果如下
OR(wald) = 5 "Unconditional MLE & normal approximation (Wald) CI"
OR(fisher) = 4.876479 "Conditional MLE & exact CI from 'fisher.test'"
OR(midp) = 4.854721 "median-unbiased estimate & mid-p exact CI"
OR(small) = 4.132231 "small sample-adjusted UMLE & normal approx (Wald) CI"
根據維基百科所提到最基礎的計算方式
OR 為 (50/10) / (10/10) = 5
所以看起來 wald 應該是最基本的算法
問題1 :
method = wald
真的就是最基礎的算法嗎?
還是只是我舉的例子不好 , 看不出差異
問題2 :
另外三種計算方法是做了甚麼樣的修正
或是基於甚麼 assumption 而設計的方法?
問題3 :
我的 sum(case , control)
從 200 ~ 10000 都有
看起來 我還不至於需要用到 , method=small
請問另外三種方法
哪種對於這樣的樣本數 , 適用性最高?
懇請各位版友協助
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.239.247
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:03)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:04)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:04)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:04)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:05)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:08)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:09)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:11)
→
12/01 23:11, , 1F
12/01 23:11, 1F
→
12/01 23:13, , 2F
12/01 23:13, 2F
那所以我用 wald 就可以了嗎?
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:43)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:43)
※ 編輯: gsuper 來自: 140.113.239.247 (12/01 23:44)