全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
3285 1
2014-11-19
悬赏 5 个论坛币 未解决

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-1-13 18:42:48
alpha语句
proc reg data=origianl;
ods output nobs=a anova=b fitstatistics=c parameterestimates=d;
model y=x1;
by co;
quit;
data final;
set a(where=(Label="Number of Observations Read") keep=co Label N);
set b(where=(Source="Model") keep=source FValue);
set c(where=(Label2="Adj R-Sq") keep=Label2 nValue2 rename=(nValue2=adj_R_sq));
set d(where=(Variable="Intercept") keep=Variable Estimate tValue Probt rename=(Estimate=alpha tValue=t_alpha Probt=p_alpha));
set d(where=(Variable="X1") keep=Variable Estimate tValue Probt rename=(Estimate=beta1 tValue=t_beta1 Probt=p_beta1));
drop Label Source Label2 Variable;
run;

Newey-west是1987年就出来的方法,在spss里有自带程序。用sas是可以做到的,语句:
Proc model data=original;
  Param b0 b1;
  y=b0+b1*x1;
  fit y/gmm kernel=(bart,1, lnM/lnT);
  instruments x1;
by co;
run;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群