請問SAS的logistic regression檢定Beta問題

看板Statistics作者 (要如何能值得?)時間19年前 (2007/04/28 22:52), 編輯推噓8(807)
留言15則, 2人參與, 最新討論串1/3 (看更多)
請問SAS程式裡的logistic regression檢定beta值預設是用chi square 如果要加算個Fisher's exact test的話要加什麼指令呢? 謝謝! google了老半天都還是不太清楚 =..=a -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.4.68

04/29 07:38, , 1F
勸妳直接用proc freq中的chisq跟fisher指令啦
04/29 07:38, 1F

04/29 07:42, , 2F
不過現在好像有exact logistic指令了。
04/29 07:42, 2F

04/29 07:46, , 3F
proc logistic data = m desc exactonly;
04/29 07:46, 3F

04/29 07:46, , 4F
model y = x;
04/29 07:46, 4F

04/29 07:47, , 5F
exact 'model 1' intercept x / estimate = both outdist;
04/29 07:47, 5F

04/29 07:49, , 6F
run;quit;
04/29 07:49, 6F

04/29 07:51, , 7F
雖然有紅字出現,但相信我這可以run XD
04/29 07:51, 7F

04/29 15:58, , 8F
謝謝你 請問可以解釋一下這些函數的意思嗎?謝謝喔 ^^"
04/29 15:58, 8F

04/29 17:50, , 9F
妳是指run出來的output嗎?還是程式的寫法?
04/29 17:50, 9F

04/29 17:51, , 10F
data=m,"m"表示妳資料的名稱
04/29 17:51, 10F

04/29 17:52, , 11F
model y = x;妳知道吧!y是啥x是啥妳知道吧?XD
04/29 17:52, 11F

04/29 17:53, , 12F
然後在intercept 後加入上一行中的x,其他的都不用改
04/29 17:53, 12F

04/29 18:55, , 13F
先生您正好都解釋到我瞭解的地方耶 ^^a 其他的代表什麼意思
04/29 18:55, 13F

04/29 20:38, , 14F
妳搞錯性別了,這是exact logistic regression的程式,
04/29 20:38, 14F

04/29 20:47, , 15F
我沒惡意,只是不想寫了,有不懂的,請妳自己查sas help
04/29 20:47, 15F
文章代碼(AID): #16Cr-wqe (Statistics)
文章代碼(AID): #16Cr-wqe (Statistics)