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

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


From   "Dietrich Dr�ner" <[email protected]>
To   [email protected]
Subject   st: how add (merge!?) variables to master data set
Date   Fri, 22 Apr 2005 11:40:44 +0200

Dear Statalisters,

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.

Would be great if someone had a hint!

Thanks!

Dietrich.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  Dietrich Dr�ner
  Schneckenburgstr. 24
  D - 78467 Konstanz

  Tel. (+49) - 7531 - 698003
  Fax  (+49) - 1212 - 522970813
  Mob.(Inland): (+49) - 177 - 6334099
  Mob.(Ausland):(+49) - 162 - 7679952

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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