Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: how add (merge!?) variables to master data set

From   "Nick Cox" <>
To   <>
Subject   st: RE: how add (merge!?) variables to master data set
Date   Fri, 22 Apr 2005 13:04:38 +0100

Incorrect syntax. Look at the help again 
and then delete the first "using". 


Dietrich Drüner
> I have a actually quite simple problem, but my STATA (version 
> 7) does not understand me:
> I want to add 3 variables from a different (using) data set, 
> which has only 1 observation, to my master data set in memory 
> with 28 observations.
> I tried:
> merge using var1 var2 var3 using 
> "$otherdirectory\differentdataset.dta"
> but I get the error message "variable var1 not found" or 
> "var1 ambiguous abbreviation" (which is definitely not true). 
> But it seems to me that "joinby" or "append" are even less 
> appropriate commands.
> It would be much more efficient if it worked somhow this way, 
> because I must make a similar operation with 9 data sets.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index