楼主: galoischen
3790 4

stata 命令求助 [推广有奖]

  • 0关注
  • 0粉丝

学前班

90%

还不是VIP/贵宾

-

威望
0
论坛币
20 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
75 点
帖子
3
精华
0
在线时间
0 小时
注册时间
2007-4-28
最后登录
2016-11-16

楼主
galoischen 发表于 2007-4-28 06:19:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

使用SUR 模型估计下面的系统

Y1=b0+b1x1 +b2x2+b3x3+b4x4+e

Y2=r1+e

Y3=r2+e

如果给定约束 r1=b1, r2=b2

stata命令如何给出约束啊

sureg (Y1 x1 x2 x3 x4)(Y2)(Y3),constrain??? 后面怎么写

谢谢各位啊

二维码

扫码加我 拉你入群

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

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

关键词:Stata tata constrain stata命令 Strain Stata 命令

回帖推荐

蓝色 发表于2楼  查看完整内容

为什么不去stata里面查帮助啊? 还有,论坛上有stata7的reference上面介绍的都很详细的?还是免费的 我不知道为什么不去看看。 -------------------------------------------------------------------------------------------------------help for constraint manual: [R] constraint ...

沙发
蓝色 发表于 2007-4-28 08:15:00

为什么不去stata里面查帮助啊?

还有,论坛上有stata7的reference上面介绍的都很详细的?还是免费的

我不知道为什么不去看看。


-------------------------------------------------------------------------------------------------------
help for constraint manual: [R] constraint
dialogs: define drop
-------------------------------------------------------------------------------------------------------

Define and list constraints

constraint [define] # [ exp=exp | coefficientlist ]

constraint dir [ numlist | _all ]

constraint drop { numlist | _all }

constraint list [ numlist | _all ]

constraint get #

constraint free


coefficientlist is one of
coefficient [coefficient ...]
[eqno]: coef [coef ...]
[eqno]
[eqno1=eqno2]: coef [coef ...]
[eqno1=eqno2]

coefficient is
coef
[eqno]coef

coef is
varname
_b[varname]

eqno is
##
#
name


Description

constraint defines, lists, and drops linear constraints. Constraints are for use by models that
allow constrained estimation.

constraint get and constraint free are programmer's commands. constraint get returns the
contents of the specified constraint in macro r(contents) and returns in scalar r(defined) 0 or
1, 1 being returned if the constraint was defined. constraint free returns the number of an
unused constraint in macro r(free).


Examples

For use, with, say, cnsreg (where there is one equation):

. constraint 1 price = weight
. cnsreg mpg price weight, constraint(1)

For use, with, say, mlogit (where there are multiple equations):

. constraint 2 [Insured]site2 = 0
. mlogit insure age male site*, constraint(2)

. cons 10 [Insured]: site2 site3
. cons 11 [Insured=Prepaid]: site3 site4
. mlogit insure age male site*, cons(10-11)

In all cases:

. cons drop 1, 10-11
. cons drop _all


Also see

Manual: [R] constraint

Online: help for cnsreg, ml, mlogit, test; local, matrix makecns

已有 1 人评分论坛币 学术水平 热心指数 收起 理由
crystal8832 + 10 + 1 + 1 热心帮助其他会员

总评分: 论坛币 + 10  学术水平 + 1  热心指数 + 1   查看全部评分

藤椅
galoischen 发表于 2007-4-28 10:53:00

谢谢啊 不好意思 第一次上论坛 不是很熟悉

板凳
df3c 发表于 2007-4-28 18:24:00
very good.
Email: hoteye@gmail.com

报纸
yefeiahua 发表于 2007-7-21 10:35:00
呵呵

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-5 17:28