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 on April 23, and its replacement, is already up and running.

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

Re: st: combining surveys

From   Phil Clayton <>
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'


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:
> *
> *
> *

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index