2014-09-24 34 views
0

我該怎麼辦,如果我要指派我攔截,使I = 906.73916.thanksSAS,如何從迴歸結果檢索值,並賦值給一個變量

     
                Parameter Estimates 
    
                  Parameter  Standard 
    Variable  Label     DF  Estimate   Error t Value Pr > |t| 
    
    Intercept Intercept    1  906.73916  28.26505  32.08  <.0001 
    acs_k3  avg class size k-3  1  -2.68151  1.39399  -1.92  0.0553 
    meals  pct free meals   1  -3.70242  0.15403  -24.04  <.0001 
    full   pct full credential  1  0.10861  0.09072  1.20  0.2321

回答

0

ODS是對此非常有幫助。不同輸出組件的名稱因不同的procs而異。下面的PROC REG示例應該與大多數迴歸PROCS大致相同:

ods output ParameterEstimates=MyIntercept(where=(Variable="Intercept")); 

proc reg data=sashelp.class; 
    model weight=age; 
run; 
quit; 

ods output close; 

proc print data=MyIntercept; 
run; 
相關問題