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

Re: st: merging panel datasets


From   Daniel Egan <[email protected]>
To   [email protected]
Subject   Re: st: merging panel datasets
Date   Fri, 1 Oct 2004 19:20:57 -0400

Hi Sarah, 

What error message are you returning? If your data is not -sort-ed,
Stata will not merge them.

i.e. 
(In using data)
sort name lastname year
save ........using.dta

use master.dta
sort name lastname year
merge name lastname year using "......using.dta"



> I am trying to merge 2 panel datasets. But I want to use more than one
> variable, name and lastname year as merging criteria. I tried
> merge name lastname year using x
*
*   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