楼主: seaPRChina
1119 1

如果纪录第一个 事件 (STATA) [推广有奖]

  • 0关注
  • 0粉丝

初中生

61%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
69 点
帖子
7
精华
0
在线时间
18 小时
注册时间
2010-7-3
最后登录
2018-4-12

楼主
seaPRChina 发表于 2012-10-21 16:53:34 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
有一些公司的合作事件及其发生时间。时间是在1990-2009。 有些公司可能有多起合作事件。
如何纪录 那些公司  在 3年内只有一次 合作事件。

For example,
Company A established a joint venture with Company B on Jan 5, 1991; (joint venture 1)
Company A estalbished another joint venture with Company C on Feb 9, 1993. (joint venture 2)
Company A established the third joint venture with COmpany D on Dec 5, 1994. (joint venture 3)
Company A establisehd the fourth joint venture with Company E on Dec 6, 2005 (joint venture 4)

Then I have to record the first and the fourth joint venture.
I should not record the second and the third one because the second one is within 3 years of the first one; and the third one is within 3 years of the second one.

How can I use the STATA command to record these two joint ventures?


二维码

扫码加我 拉你入群

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

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

关键词:Stata tata establish ventures Venture 公司 合作 another example venture

沙发
大白菜2012 发表于 2012-10-22 23:32:09

假设 date为时间变量,

sort firm date

bys firm: gen num_year=(date[_n-1]-date[_n])/365.5

gen jointcase=(num_year>3)

元芳,侬怎么L00K?

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-1 01:24