楼主: bridog
9393 6

[原创博文] 负二项回归模型 [推广有奖]

  • 0关注
  • 2粉丝

博士生

84%

还不是VIP/贵宾

-

威望
0
论坛币
1 个
通用积分
4.3500
学术水平
0 点
热心指数
3 点
信用等级
0 点
经验
4748 点
帖子
255
精华
0
在线时间
273 小时
注册时间
2008-11-29
最后登录
2024-3-24

楼主
bridog 发表于 2011-5-12 11:22:02 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
以下代码是我按照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.

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

扫码加我 拉你入群

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

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

关键词:负二项回归 回归模型 recognized following Parameter following error 模型 信息

回帖推荐

baoaibaobao 发表于4楼  查看完整内容

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

本帖被以下文库推荐

沙发
sas_user 发表于 2011-5-12 11:41:41
dist 这好像是sas9.2下的option

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

板凳
baoaibaobao 发表于 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
已有 1 人评分经验 论坛币 收起 理由
bakoll + 3 + 3 精彩帖子

总评分: 经验 + 3  论坛币 + 3   查看全部评分

报纸
bridog 发表于 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.

地板
baoaibaobao 发表于 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

7
whqisong 发表于 2014-9-11 07:45:45
高深莫测。

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-31 09:00