Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: comparing datasets


From   Nick Cox <[email protected]>
To   [email protected]
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
<[email protected]> 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
> <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index