Bookmark and Share

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]

Re: st: combining surveys


From   Phil Clayton <[email protected]>
To   [email protected]
Subject   Re: st: combining surveys
Date   Mon, 6 Feb 2012 15:05:10 +1100

I think you're after -append-, eg:

use firstdataset
gen year=2005
tempfile first
save `first'
use seconddataset
gen year=2010
append using `first'

Phil

On 06/02/2012, at 12:30 PM, new user wrote:

> dear statalist
> i have two datasets referred to two different years and collected
> through surveys where each person was interview only in one occasion.
> apart from years and participants, surveys are identical for all the
> variable they include.
> can i combine the surveys (introducing a year dummy)?
> i understand this seems a very basic question, but i would appreciate an answer.
> 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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index