请选择 进入手机版 | 继续访问电脑版
楼主: idiele
1499 4

[原创博文] 回归程序不运行 [推广有奖]

  • 1关注
  • 0粉丝

本科生

29%

还不是VIP/贵宾

-

威望
0
论坛币
22 个
通用积分
0
学术水平
0 点
热心指数
1 点
信用等级
0 点
经验
1692 点
帖子
77
精华
0
在线时间
33 小时
注册时间
2009-3-7
最后登录
2017-5-31

idiele 发表于 2012-2-9 10:44:17 |显示全部楼层 |坛友微信交流群

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币


proc model data=ipo.fna1;
parms b0-b29;
retnfstd=b0+b1*age+b2*lnamnt+b3*shrcntr+b4*bj+b5*gg+b6*indcd1+b7*indcd2+b8*indcd3
+b9*indcd4+b10*indcd5+b11*yr90+b12*yr91+b13*yr92+b14*yr93+b15*yr94+b16*yr95+b17*yr96
+b18*yr97+b19*yr98+b20*yr99+b21*yr00+b22*yr02+b23*yr02+b24*yr03+b25*yr04+b26*yr05+b27*yr06
+b28*yr07+b29*yr08;
fit retnfstd/gmm kernel=(bart,1,0);
run;

这是关于回归的一段程序,indcd1-indcd5是行业虚拟变量,yr90-yr99 及yr00-yr08是年份虚拟变量。

但log 显示如下错误:
ERROR: The number of parameters (31) is greater than the number of unique instruments (30) times
       the number of equations (1).
请问是哪里出问题了?
二维码

扫码加我 拉你入群

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

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

关键词:Instruments Instrument parameters Parameter Equations ERROR 程序 行业

idiele 发表于 2012-2-9 10:45:03 |显示全部楼层 |坛友微信交流群
晕倒,怎么发出来会这样!
在这将问题重发一下


proc model data=ipo.fna1;
parms b0-b29;
retnfstd=b0+b1*age+b2*lnamnt+b3*shrcntr+b4*bj+b5*gg+b6*indcd1+b7*indcd2+b8*indcd3
+b9*indcd4+b10*indcd5+b11*yr90+b12*yr91+b13*yr92+b14*yr93+b15*yr94+b16*yr95+b17*yr96
+b18*yr97+b19*yr98+b20*yr99+b21*yr00+b22*yr02+b23*yr02+b24*yr03+b25*yr04+b26*yr05+b27*yr06
+b28*yr07+b29*yr08;
fit retnfstd/gmm kernel=(bart,1,0);
run;

这是关于回归的一段程序,indcd1-indcd5是行业虚拟变量,yr90-yr99 及yr00-yr08是年份虚拟变量。

但log 显示如下错误:
ERROR: The number of parameters (31) is greater than the number of unique instruments (30) times
       the number of equations (1).
请问是哪里出问题了?

使用道具

maidenhan 发表于 2012-2-9 10:55:54 |显示全部楼层 |坛友微信交流群
U have 30 equations, but there are 31 parameters. It means u can find countless solution and all of them are best.
i.e.  x + y + z= 10,  x + z = 20
now, we have 2 equations and 3 variables, the answer u find would be the fundesmantal set of solution.

使用道具

idiele 发表于 2012-2-9 17:28:27 |显示全部楼层 |坛友微信交流群
maidenhan 发表于 2012-2-9 10:55
U have 30 equations, but there are 31 parameters. It means u can find countless solution and all of  ...
不是这样的吧。我用“parms"定义的变量数与回归式中的变量数(包括截距项在内)是一致的呀!
能否提供修改建议呢?

使用道具

xmuliz 发表于 2020-5-12 09:06:31 |显示全部楼层 |坛友微信交流群
idiele 发表于 2012-2-9 10:45
晕倒,怎么发出来会这样!
在这将问题重发一下
请问解决了吗,遇到了同样的问题

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-29 13:27