楼主: joehau
2252 1

asking for help urgently: stata ml programming [推广有奖]

  • 0关注
  • 0粉丝

学前班

70%

还不是VIP/贵宾

-

威望
0
论坛币
369 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
91 点
帖子
4
精华
0
在线时间
0 小时
注册时间
2006-1-19
最后登录
2014-3-15

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
Dear statalist, I 've been trying to use 'stata ml' command to maximize the following equation
(k1i + e1i)X1i + (k2i + e2i)X2i + uX1iX2i
if u=0 then the equation can be estimated by standard 'bivariate probit'. However, when u>0 the decision of (X1i, X2i) = (1,1) or (0,0) will be biased; when u>0 the decision of (X1i, X2i) = (1,0) or (0,1) will suffer the biaseness also. 
My first question is of how and where to put the restriction of u > 0 and u< 0 when i am programming ml.
Second question is that do i have to write theta3 for uX1iX2i? if i do, how should i put it?  any suggestion or help will be very much appreciated. thank you!

二维码

扫码加我 拉你入群

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

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

关键词:Programming urgently Program urgent R help Programming Stata Help Asking urgently

回帖推荐

joehau 发表于2楼  查看完整内容

is it correct to express in this way?* theta1=X1Beta1* theta2=X2Beta2* theta4=rho12* theta3=X1X2Beta3...qui replace `lnf'=ln(binorm(`theta1'+`theta3',`theta2'+`theta3',`rho12')) if $ML_y1==1 & $ML_y2==1 & `theta3'<=0qui replace `lnf'=ln(binorm(`theta1'+`theta3',`theta2'+`theta3',`rho12')-`biv1') if $ML_y1==1 & $ML_y2==1 & `theta3'>0qui replace `lnf'=ln(binorm(-`theta1',-`theta2',`rho12 ...

本帖被以下文库推荐

沙发
joehau 发表于 2009-4-13 20:42:00 |只看作者 |坛友微信交流群
is it correct to express in this way?
* theta1=X1Beta1
* theta2=X2Beta2
* theta4=rho12
* theta3=X1X2Beta3
.
.
.
qui replace `lnf'=ln(binorm(`theta1'+`theta3',`theta2'+`theta3',`rho12')) if $ML_y1==1 & $ML_y2==1 & `theta3'<=0
qui replace `lnf'=ln(binorm(`theta1'+`theta3',`theta2'+`theta3',`rho12')-`biv1') if $ML_y1==1 & $ML_y2==1 & `theta3'>0
qui replace `lnf'=ln(binorm(-`theta1',-`theta2',`rho12')) if $ML_y1==0 & $ML_y2==0 & `theta3'<=0
qui replace `lnf'=ln(binorm(-`theta1',-`theta2',`rho12')+`biv2') if $ML_y1==0 & $ML_y2==0 & `theta3'>0
qui replace `lnf'=ln(binorm(`theta1',-`theta2'-`theta3',-`rho12')) if $ML_y1==1 & $ML_y2==0 & `theta3'>=0
qui replace `lnf'=ln(binorm(`theta1',-`theta2'-`theta3',-`rho12')-`biv3') if $ML_y1==1 & $ML_y2==0 & `theta3'<0
qui replace `lnf'=ln(binorm(-`theta1'-`theta3',`theta2',-`rho12')) if $ML_y1==0 & $ML_y2==1 & `theta3'>=0
qui replace `lnf'=ln(binorm(-`theta1'-`theta3',`theta2',-`rho12')-`biv4') if $ML_y1==0 & $ML_y2==1 & `theta3'<0

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

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

GMT+8, 2024-5-2 17:34