楼主: xxpkiller
2917 1

关于merge!!!!!!!!! [推广有奖]

  • 0关注
  • 0粉丝

初中生

4%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
59 点
帖子
6
精华
0
在线时间
10 小时
注册时间
2010-4-30
最后登录
2014-9-28

楼主
xxpkiller 发表于 2012-9-21 17:24:48 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
STATA里的merge问题
_merge==1
_merge==2
_merge==3
都是代表什么意思来着??
以前写的代码一时想不起来了。。。。。。。。。。。
二维码

扫码加我 拉你入群

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

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

关键词:Merge Stata tata

沙发
蓝色 发表于 2012-9-22 06:12:51
Remarks

    merge can perform both one-to-one and match merges.  In either case, the variable _merge (or the variable specified in
    _merge() if provided) is added to the data containing

                               _merge==1    obs. from master data                           
                               _merge==2    obs. from only one using dataset                 
                               _merge==3    obs. from at least two datasets, master or using

    update can be used only when there is one using file.  When update is specified, the codes for _merge are

                               _merge==1    obs. from master data                           
                               _merge==2    obs. from using data                             
                               _merge==3    obs. from both, master agrees with using         
                               _merge==4    obs. from both, missing in master updated        
                               _merge==5    obs. from both, master disagrees with using      

    When multiple using files are specified, a set of summary variables is created, as long as nosummary is not used.
    These summary variables are named _merge1 (related to the first using dataset), _merge2 (related to the second using
    dataset), etc. (or, once again, the variable specified in _merge() if provided, followed by the number of the using
    file).  These variables will contain

                               _mergek==0   obs. not present in corresponding using dataset  
                               _mergek==1   obs. present in corresponding using dataset      

    Variable labels identifying the dataset associated with each summary variable are attached to these summary variables.

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

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