全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
6101 7
2007-11-09

如题:

比如reg.dta文件里有obs1和obs2,

变量有name、age等100个,我如何确定obs1和obs2是不是完全一样?

 

 

name

age

cm

Obs1

kid

16

.

Obs2

kid

15

.

拜托了,各位高手!!

[此贴子已经被作者于2007-11-9 15:41:43编辑过]

二维码

扫码加我 拉你入群

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

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

全部回复
2007-11-10 03:51:00
用命令list把它们列出来看一下不就行了?
二维码

扫码加我 拉你入群

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

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

2007-11-14 14:08:00
在excel中,第一个减第二个,看是否都是0
二维码

扫码加我 拉你入群

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

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

2007-11-14 15:13:00

help for cf                                                                            (manual:  [R] cf)
--------------------------------------------------------------------------------------------------------

Compare two datasets

        cf varlist using filename [, verbose ]


Description

cf compares varlist of the data in memory (master data) to the corresponding variables in filename
(using data).  cf returns 0 if the specified variables are identical and 9 if there are any differences.
Only the variable values are compared.  Variable labels, value labels, notes, characteristics, etc. are
not compared.


Options

verbose mentions the result of the comparison variable-by-variable.  If not specified, only differences
    are mentioned.


Examples

        . cf mpg weight displ using mydata

        . cf _all using mydata


Also see

 Manual:  [R] cf
On-line:  help for compare
或者net search compare

你会找到cf的其他版本

cf2 from http://fmwww.bc.edu/RePEc/bocode/c
    'CF2': module to compare two datasets / cf2 is a slight variation of cf to
    list the observations where / differences exist.  Option verbose must be
    specified to obtain / the listing. Like cf, cf2 compares varlist of the
    data in memory / (master data) to the corresponding variables in filename

cf3 from http://fmwww.bc.edu/RePEc/bocode/c
    'CF3': module to compare two datasets / cf3 matches observations by a
    record id variable and lists the / observations where differences exist.
    It compares variables of / the dataset in memory (the 'master' data) to
    the corresponding / variables in a file (the 'using' data).  Only the

[此贴子已经被作者于2007-11-14 15:26:18编辑过]

二维码

扫码加我 拉你入群

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

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

2007-11-14 15:26:00

令两个obs各自形成一个(单obs)数据库,任意打开一个。

cf _all using 另一个数据库的路径, all verbose

二维码

扫码加我 拉你入群

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

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

2007-11-15 14:46:00
点击工具烂,选择data---variable utilities----compare two variables,然后就出结果了。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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