Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: combining surveys


From   Phil Clayton <philclayton@internode.on.net>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index