楼主: bridog
2431 8

负二项模型或零膨胀负二项模型预测概率图 [推广有奖]

  • 0关注
  • 2粉丝

博士生

84%

还不是VIP/贵宾

-

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

楼主
bridog 发表于 2012-4-24 18:36:19 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
下面是我利用proc nlmixed模块计算负二项模型:
title'NB model';
proc nlmixed data=one;
parms x1=0 x2=0 x3=0;
mu=exp(x1+x2*A1+x3*B1);
ll= lgamma (y+1/alpha)-lgamma(y+1)-lgamma(1/alpha)+y*log(alpha*mu)-(y+1/alpha)*log(1+alpha*mu);
model y~general (ll);
ods output parameterestimates=pe_nb;
run;

我想求出模型的pearson残差,画出预测的概率和实际的概率图,能否帮帮忙?谢谢了!
@%USY`ZIB9W`KX1S}P5$OZG.jpg
二维码

扫码加我 拉你入群

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

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

关键词:模型预测 预测概率 proc nlmixed Parameter Estimates general pearson title 模型

沙发
jingju11 发表于 2012-4-25 02:39:58
Please read some of my comments:
http://blog.sina.com.cn/s/blog_a3a9263601012jnc.html

藤椅
bridog 发表于 2012-4-25 08:54:47
jingju11 发表于 2012-4-25 02:39
Please read some of my comments:
http://blog.sina.com.cn/s/blog_a3a9263601012jnc.html
Thanks. What about zero-inflated negabin binomial model and hurdle negabin binomial model (zero-altered negabin binomial model)?

板凳
bridog 发表于 2012-4-25 09:58:56
What about zero-inflated negabin binomial model and hurdle negabin binomial model (zero-altered negabin binomial model)?

报纸
jingju11 发表于 2012-4-27 06:10:13
bridog 发表于 2012-4-25 09:58
What about zero-inflated negabin binomial model and hurdle negabin binomial model (zero-altered nega ...
it should be fairly easy...sorry, i shouldn't say that. it is not easy at all. jingju

地板
bridog 发表于 2012-4-27 08:49:47
jingju11 发表于 2012-4-27 06:10
it should be fairly easy...jingju
Thanks. But is difficult to me. So I need your help.

7
bridog 发表于 2012-4-27 10:32:12
jingju11 发表于 2012-4-25 02:39
Please read some of my comments:
http://blog.sina.com.cn/s/blog_a3a9263601012jnc.html
在SAS9.0计算预测概率会出现错误,而相同的代码在SAS9.2确顺利进行。您知道是什么原因不?

8
jingju11 发表于 2012-4-27 10:41:13
what i can see is, pdf() is a pretty new function. did it start from sas 9.1.3?
jingju

9
bridog 发表于 2012-4-28 08:55:34
jingju11 发表于 2012-4-27 10:41
what i can see is, pdf() is a pretty new function. did it start from sas 9.1.3?
jingju
Thanks a lot. Please help me calculate the predicted probability of zero-inflated negative binomial and hurdle-negative binomial model. Thanks again. I am not familiar with SAS.

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-8 05:06