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: merging datasets


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: merging datasets
Date   Thu, 19 Aug 2010 16:05:09 +0000 (GMT)

--- On Thu, 19/8/10, Wenxia Ge wrote:
> I am using Stata 10. When I use "merge m:1 var1 var2 using
> t1",  I will get the following error information "variable 
> m not found" . When I use "merge 1:m var1 var2 using t2"
> command, then get this error message "1 invalid name". So
> I am just wondering how to make "merge m:1" or "merge 1:m"
> work?

You cannot do so in Stata 10, the -1:m- and -m:1- syntax was
introduced in Stata 11. To find the correct syntax for your 
problem in Stata 10 type in Stata -help merge-.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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