全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学
4154 8
2010-10-16
各位大侠辛苦了!小弟请教如何在Editor中输入数学公式,如求和号,积分号,连乘号等等?如 另外问一下parms 是干什么的?
附件列表
二维码

扫码加我 拉你入群

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

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

全部回复
2010-10-16 10:30:18
董祥桥 发表于 2010-10-16 00:40
各位大侠辛苦了!小弟请教如何在Editor中输入数学公式,如求和号,积分号,连乘号等等?如 另外问一下parms 是干什么的?
I don't think it can be done in SAS program Editor.
二维码

扫码加我 拉你入群

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

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

2010-10-16 11:58:30
你可以考虑将数学表达式压入数组里面,然后进行连接表达,没做过
你试一下呢
二维码

扫码加我 拉你入群

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

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

2010-10-16 18:38:36
是这样的。我要做极大似然估计,对数似然函数里面有连乘号,具体见附件。麻烦高手帮忙解答一下!
二维码

扫码加我 拉你入群

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

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

2010-10-16 21:11:32
董祥桥 发表于 2010-10-16 18:38
是这样的。我要做极大似然估计,对数似然函数里面有连乘号,具体见附件。麻烦高手帮忙解答一下!
Different to Maple alike, SAS is data-driven. You cannot directly compute formulas. In fact, maximum log likelihood is based on data. As my understanding, you should have data with n observations. You should indicate which parameters to be estimated as well. I guess here is α and ε while αt and εt may be αi and εi from your data.
二维码

扫码加我 拉你入群

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

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

2010-10-16 21:39:15
董祥桥 发表于 2010-10-16 18:38
是这样的。我要做极大似然估计,对数似然函数里面有连乘号,具体见附件。麻烦高手帮忙解答一下!
I may misunderstand your problem.

usually in SAS procedures, you don't need to specified accumulative sum, it is caculated within a procedure. You only need to specify the likelihood function at each observation level. When you take a log function of likelihood function, it becomes a sum.

Here is an example to do a probit model in your own program. you will see the results are the same as that  from canned procedures.

data tmp;
   do t=1 to 100;
      x=rannor(123);
      y=1+1*x> rannor(123);
      output;
    end;
run;

proc logistic data=tmp;
  model y(event='1')=x/link=probit;
run;

proc nlmixed data=tmp;
parms a=0 b=0;
xbeta=a+b*x;
p=probnorm(xbeta);
if y=1 then p=p;
else p=1-p;
loglik=log(p);
model y ~ general(loglik);
run;
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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