全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件
2483 4
2009-12-01
在非线性回归模型中如何进行多种共线性的诊断? 比如我下面的代码,怎么添加诊断:
option nocenter;
dm 'log;clear;output;clear';
proc import datafile="c:\data.xls" replace
     out=one;
     getnames=yes;
data one;  set one;
proc nlin data=one;         
  parms b1=0.3 b2=-0.1 b3=-0.4 b4=0.1 b5=-0.8 b6=0.02 b7=0.06 b8=-0.02;
   
faNew = exp(b1+b2*tmax+b3*hmin+b4*wmax+b5*wa+b6*ev+b7*p+b8*tmm);                     

  model fa = faNew;         
  output out=two predicted=fahat

谢谢各位了!
二维码

扫码加我 拉你入群

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

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

全部回复
2009-12-2 04:58:05
Are you going to diagnose the multicollinearity among the seven variables:
tmax, hmin, wmax, wa, ev, p and tmm ?
二维码

扫码加我 拉你入群

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

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

2009-12-2 09:14:34
Yes, I want  to diagnose the multicollinearity among the seven variables:
tmax, hmin, wmax, wa, ev, p and tmm .

Can you help me? Thank you.
二维码

扫码加我 拉你入群

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

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

2009-12-2 13:36:29
3# bridog

I think it is just the same as in linear models, because it is about the relationship among independent variables.

1. High correlation between any two independent variables suggests multicollinearity.
In SAS, the CORR procedure is used to computes Pearson correlation coefficients. PROC CORR statement invokes the CORR procedure and specifies the data set to be analyzed. The VAR statement identifies variables to correlate and their order in the correlation matrix.
proc corr data=one;
var  Tmax hmin wmax wa ev p  tmm ;
run;

2. We speak about strong multicollinearity if the largest VIF, variance inflation factor, is larger than 10 or if the mean of the VIF values is considerably larger then 1.
In SAS, the VIF option for MODEL statement in PROC REG requests the calculation of the variance inflation factors.

proc reg data= one;

model fa= Tmax hmin wmax wa ev p  tmm /vif;

run;


3. The eigenvalues of the correlation matrix is another tool to detect multicollinearity. If there is perfect multicollinearity, some of the eigenvalues are zero. Near collinearity is associated with small eigenvalues. In SAS, the COLLINOINT option for MODEL statement in PROC REG provides analysis of the correlation matrix for the original data.

proc reg data= one;

model fa= Tmax hmin wmax wa ev p  tmm /collinoint;

run;

二维码

扫码加我 拉你入群

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

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

2009-12-3 10:50:39
Thank you! I know what you mean. But I want to add the code of multicollinearity diagnose to the nonlinear model. So what can I do?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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