Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: comparing datasets


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: comparing datasets
Date   Mon, 8 Aug 2011 17:40:57 +0100

The phrasing "got hold of" implies, to me at least, that you installed
-dta_equal- from somewhere. However, -dta_equal- is an official
command, but one that is undocumented.

What is evident from some experiment that its behaviour, flagged in
the help, that it "aborts with error r(9) if they [meaning datasets]
differ", prevents it returning useful results in r() in that
situation. I agree with your surprise at this.

Nick

On Mon, Aug 8, 2011 at 3:32 PM, Abhimanyu Arora
<abhimanyu.arora1987@gmail.com> wrote:

> As a follow up, there should be something in the macros in r(), but
> return list gives me a blank stare.

> On Mon, Aug 8, 2011 at 4:27 PM, Abhimanyu Arora
> <abhimanyu.arora1987@gmail.com> wrote:

>> I have two datasets, one of which has all the variables of the second,
>> plus additional variables. I would like to get a list of all these
>> additional variables. There's this obscure command -dta_equal- that I
>> have got hold of, but contrary to what's in the help file, it doesn't
>> display the unique variables belonging to a particular dataset, rather
>> seems to be working merely like the -cf-. Any alternative/improvement?
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index