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: how do you merge a large dataset and small dataset together based on a unique id?


From   Gwinyai Masukume <parturitions@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: how do you merge a large dataset and small dataset together based on a unique id?
Date   Tue, 23 Apr 2013 15:12:49 +0200

Very true Nick. Thanks

@ Daniel
http://blog.stata.com/2011/04/18/merging-data-part-1-merges-gone-bad/
"Always be suspicious of numeric ID variables stored numerically, not
just those stored as floats."
I changed the id to a string and everything worked beautifully.

Thanks

Kind regards,
Gwinyai

On 4/23/13, Nick Cox <njcoxstata@gmail.com> wrote:
> You cited this problem of confidentiality in your last post too.
>
> Clearly no-one is expecting you to show personal data.
>
> But the solution is easy. Fake an example with invented data and then
> show us your code.
>
> Some posts come close to a limiting case "Code I am not showing you on
> data I am not showing you is not doing what I want. Anyone know why?".
> It's important to lift yourself clear of that!
>
> Nick
> njcoxstata@gmail.com
>
> On 23 April 2013 13:27, Gwinyai Masukume <parturitions@gmail.com> wrote:
>> Dear Daniel and Maarten,
>>
>> I apologize for not giving the syntax – I was trying to protect the
>> privacy of patients. I did not want to inadvertently breach
>> confidentiality which can have grave consequences.
>>
>> Thank you for the example and the link. That’s what I needed for
>> debugging.
>>
>> Kind regards,
>> Gwinyai
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/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/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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