[問題] WARNING: Iteration limit exceeded

看板Statistics作者 (P幣拿來)時間15年前 (2009/04/25 14:34), 編輯推噓4(4011)
留言15則, 5人參與, 5年前最新討論串1/1
我跑proc genmod的時候一直出現這個warning, 導致最後的Odds ratio沒辦法跑出來, 請問有人知道這個warning是代表什麼意思,又我該怎麼解決? 先謝過了^^ 我用的是SAS 9.0版, 1003 proc genmod data=aa1; 1004 class id1 gender; 1005 model group1=gender age ne HGB day/ dist = normal link = log; 1006 repeated subject=id1/type=exch covb corrw; 1007 estimate "HGB" HGB 1 -1/exp;1008 run; NOTE: Writing HTML Body file: sashtm71.htm NOTE: Algorithm converged. NOTE: The scale parameter was estimated by maximum likelihood. WARNING: The number of response pairs for estimating correlation is less than or equal to the number of regression parameters. A simpler correlation model might be more appropriate. 這樣的意思是說就不用link=log 囉?? NOTE: No convergence of GEE parameter estimates after 50 iterations. WARNING: Iteration limit exceeded. NOTE: PROCEDURE GENMOD used (Total process time): real time 0.12 seconds cpu time 0.06 seconds -- 猶太法典: 在你的慾望實現之前,死亡已經降臨... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.71.94.31

04/25 15:22, , 1F
1.先說明是啥統計軟體 2.把Warning的訊息PO出來
04/25 15:22, 1F
※ 編輯: pasaword 來自: 203.71.94.31 (04/25 15:33)

04/27 09:18, , 2F
SAS 跑 GEE的語法
04/27 09:18, 2F

04/27 09:20, , 3F
若是GEE 不知是否 dist=bin
04/27 09:20, 3F

04/27 11:32, , 4F
不過我這個變項是連續變項@@?
04/27 11:32, 4F

04/27 12:52, , 5F
試著先用一兩個自變相看看 感覺是計算過程不夠變換
04/27 12:52, 5F

04/27 12:52, , 6F
僅是我的看法 如有問題煩請指正了
04/27 12:52, 6F

04/27 13:21, , 7F
把 iterations 修改成超過50次看看
04/27 13:21, 7F

04/27 13:21, , 8F
這是告訴你 算了50次以後還沒收斂 但是內設應該是50次
04/27 13:21, 8F

04/27 13:22, , 9F
至於怎麼改 善用SAS的help 應該查的到
04/27 13:22, 9F

04/27 13:23, , 10F
不然就要設 適當的起始值 幫助SAS快速跑出結果
04/27 13:23, 10F

04/27 13:23, , 11F
當然也有可能是模型錯誤 不可能收斂
04/27 13:23, 11F

04/27 15:10, , 12F
outcome是連續 雖沒試過 但和link function有關
04/27 15:10, 12F

04/27 15:11, , 13F
dist=NORMAL link預設為identity 個人淺見
04/27 15:11, 13F

11/09 14:57, , 14F
試著先用一兩個自變相看 https://daxiv.com
11/09 14:57, 14F

01/02 14:53, 5年前 , 15F
SAS 跑 GEE的語 https://daxiv.com
01/02 14:53, 15F
文章代碼(AID): #19ygxbAr (Statistics)