Re: [問題] 在Results裡抓出某個變數的值 (SAS)

看板Statistics作者 ( 將心比心)時間17年前 (2008/12/04 14:25), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
我不知道proc autoreg 有沒有支援 不過你可以試試看 ods trace on ; proc autoreg data=simulate; model mu = / garch = ( q=1, p=1 ); by j; run; ods trace off ; 執行之後去log那邊看一下有沒有這樣的log敘述如下 Output Added: ------------- Name: ModelInfo Label: Model Information Template: Stat.Genmod.ModelInfoLabel Path: Genmod.ModelInfo ------------- Output Added: ------------- Name: NObs Label: Observations Summary Template: Stat.Genmod.NObs Path: Genmod.NObs ------------- Output Added: ------------- Name: ModelFit Label: Criteria For Assessing Goodness Of Fit Template: stat.genmod.ModelFit Path: Genmod.ModelFit ------------- Output Added: ------------- Name: ConvergenceStatus Label: Convergence Status Template: Stat.Genmod.ConvergenceStatus Path: Genmod.ConvergenceStatus ------------- NOTE: Algorithm converged. Output Added: ------------- Name: ParameterEstimates Label: Analysis Of Parameter Estimates Template: stat.genmod.parameterestimates Path: Genmod.ParameterEstimates ------------- 若有的話 就找出你要找的報表 例如我要ParameterEstimates這張報表 所以我要引用裡面的數據的話只要打上 ods output ParameterEstimates = 新檔案名稱; 就會轉出到work資料夾嚕 ※ 引述《idaidai (^^)》之銘言: : 請問一下 : 資料有了...跑proc autoreg : 像我是跑 : proc autoreg data=simulate; : model mu = / garch = ( q=1, p=1 ); : by j; : run; : quit; : 在這個result跑出後會有許多統計數字 : 像是SSE MSE AIC.......... : 如果我只要GARCH esimate這個部分裡的 Log Likelihood 和 AIC 這兩個數值 : 有程式能把他抓出來嗎? : 然後放在同一個data裡(因為我的j=1 to 1000所以共有一千組) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 163.29.135.120 ※ 編輯: kingbee 來自: 163.29.135.120 (12/04 14:26)

12/04 22:40, , 1F
有耶!!!謝謝你^^
12/04 22:40, 1F
文章代碼(AID): #19DtVJPg (Statistics)
文章代碼(AID): #19DtVJPg (Statistics)