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]
st: st: Merging only one variable into master dataset in Stata11
From 
 
"Clifton Chow" <[email protected]> 
To 
 
[email protected] 
Subject 
 
st: st: Merging only one variable into master dataset in Stata11 
Date 
 
Thu, 31 Mar 2011 01:55:29 -0500 
Dear List,  
Using Stata 11, does anyone know the syntax for merging only 1 variable from a large dataset (using) to another (master)?
In the old syntax, it used to be something like below:
merge id using H:\dataset\start_flat.dta, keep(salaryavg48)
But I can't get it to work in stata 11 even after ensuring the id variable is sorted in both datasets, and all I am interested is in bringing the salaryavg48 variable into my master dataset.
Any help is appreciated.
Thanks
*
*   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/