【问题标题】:SAS: robust regression and output coefficients, t values and adj R squaresSAS:稳健的回归和输出系数、t 值和 adj R 平方
【发布时间】:2018-05-09 10:20:23
【问题描述】:

我在 SAS 中按组运行稳健回归。 我的数据是这样的

  id    stock     date     stock_liq      market_liq
   1     VOD     1/5/2016     0.03          0.02
   1     VOD     2/5/2016     0.04          0.025
  ...    ...        ...        ...          ...
   2     SAB     1/5/2016     0.31          0.02
   2     SAB     1/5/2016     0.31          0.02
  ...    ...        ...        ...          ...

它是一个面板数据,每只股票都有一个唯一的 ID。 我想通过 ID 运行稳健回归,我想输出系数、t 值和 adj-R 平方。

我的代码是:

proc robustreg data=have outest= want noprint;
model stock_liq=market_liq  ;
by id;
run;

但是我认为代码运行不正常。 SAS 只是停止运行,日志给了我

 "Error: Too many parameters in the model". 

谁能给点建议?谢谢!

【问题讨论】:

标签: sas regression robust


【解决方案1】:

语法有点不对劲。还可以添加请求的输出:

proc robustreg data=have outest= want noprint;
    by id;
    model stock_liq=market_liq  ;
    output out=output_sas 
       p=stock_liq
       r=stock_liqresid ;
run;

查看documentation的更多输出选项

【讨论】:

    猜你喜欢
    • 2012-11-28
    • 2015-10-17
    • 2014-08-19
    • 2020-05-21
    • 2015-02-06
    • 2015-01-31
    • 1970-01-01
    • 2022-06-10
    • 1970-01-01
    相关资源
    最近更新 更多