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: Merging based on dates


From   Daniel Marcelino <[email protected]>
To   [email protected]
Subject   Re: st: Merging based on dates
Date   Thu, 9 Jun 2011 17:15:20 -0300

Are you using  merge 1:m or merge m:1 in or command line? Does your
data has an id variable, or you are using the date var as id?

Daniel


On Thu, Jun 9, 2011 at 3:01 PM, Orla Liston <[email protected]> wrote:
> Hi
>
> I'm trying to merge two datasets. One of them has numerous
> observations for each date, while the smaller dataset only has one
> observation per date. Whilst the dates are mostly the same, there are
> a few dates which are present in one dataset but not the other.
>
> I'm trying to merge them based on the date, but having some trouble,
> as they obviously don't match up 100%, and also the observations in
> the smaller dataset will need to be replicated for each of the
> observations for the dates in the main dataset!
>
> I hope this makes sense? Basically I'm trying to match exchange rate
> data (the smaller dataset) with travelling data (the larger dataset)!
>
> Thanks in advance!
>
> Orla
> *
> *   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/
>



-- 
Daniel Marcelino
http://danielmarcelino.zip.net
Skype: d_marcelino

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