全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
9333 6
2011-05-12
以下代码是我按照SAS Help提供的代码写的,可就是运行不通过.

proc countreg data=one;
model y = x1 x2 x3  x4 x5 / dist=negbin ;
ods output parameterestimate=pe;
run;quit;

在log窗口出现这信息:

5          proc countreg data=one;
6
7         model y= x1 x2 x3 x4 x5/ dist=negbin ;
                                                   -----
                                                   22  200
ERROR 22-322: Syntax error, expecting one of the following: ;, ALL, CONVERGE, CORRB, COVB,
              COVEST, ERRORCOMP, ESTMETHOD, GRADFD, HESSFD, INITIAL, ITPRINT, MAXITER, METHOD,
              NEGATIVEBINOM, NEGATIVEBINOM1, NOINT, NOMISS, NOPRINT, OPTMETHOD, PANELID,
              POISSON, RANDOMINIT, SINGULAR, TYPE, XPX, XPXI, ZICR, ZINB, ZIP.
ERROR 200-322: The symbol is not recognized and will be ignored.

请高手帮我指点指点!谢谢了!
二维码

扫码加我 拉你入群

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

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

全部回复
2011-5-12 11:41:41
dist 这好像是sas9.2下的option
二维码

扫码加我 拉你入群

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

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

2011-5-12 11:51:31
这error信息是不是说,直接"model y= x1 x2 x3 x4 x5/NEGATIVEBINOM; "就行了,手边没有SAS/STAT 没法试
二维码

扫码加我 拉你入群

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

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

2011-5-12 12:57:44
You can try:
proc countreg data=one;
model y = x1 x2 x3  x4 x5 / dist=negbin(p=2) ;
ods output parameterestimate=pe;
run;quit;




NEGBIN(P=1) negative binomial regression model with a linear
variance function
NEGBIN(P=2) negative binomial regression model with
a quadratic variance function
二维码

扫码加我 拉你入群

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

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

2011-5-12 13:53:33
Yes, I have tried: dist=negbin (p=2) , and the error is the same.

My SAS version is 9.1.
二维码

扫码加我 拉你入群

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

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

2011-5-12 14:11:14
If this as u describe,I think U must change the PROC COUNTREG to PROC GENMOD.
There is no countreg in SAS9.1.3
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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