[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Compare two datasets
There are several possibilities. Here is one.
I assume that dataset1 and dataset2 have _exactly_
the same set of variable names, say foo-bar:
gen set = 1
append using dataset2
replace set = 2 if mi(set)
duplicates report foo-bar
duplicates tag foo-bar, gen(tag)
edit if tag != 1
Here the idea is that the operators did their
job properly, each observation should appear
exactly twice, at least if each has an unique
identifier. Any observation appearing just once
or more than twice is then possibly in error.
> I have two datasets, but is the same input by two operators.
> I use the "cf" command, but I ' would know more
> information, no only "15
> mismatches" , it's possible?
* For searches and help try: