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 different observations from a person
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: combining different observations from a person
Date
Mon, 5 Nov 2012 08:52:24 +0000
-help collapse-
On Mon, Nov 5, 2012 at 8:44 AM, Dudekula, Anwar <[email protected]> wrote:
> I have a dataset with multiple observations for many patients.
> I have included two observations for the same patient that were formed when two data sets were appended.
> *******************************************************************************************************************
> Numericalvar1 Numericalvar2 StringVar3 Stringvar4 Stringvar5 Numericalvar6
> observation 1 Patient 1 0 2 Male abdomen
> Obervation 2 Patient 1 1 2 chest 3
> ******************************************************************************************************************
> Observation 1 doesnt have any values for var5 and var6
> Observation 2 has a different value for Var1, same value for var2 , no value for var3 and var 4
> I need to combine the two observation so that I get a final observation as follows
> *****************************************************************************************************************
> Numericalvar1 Numericalvar2 StringVar3 Stringvar4 Stringvar5 Numericalvar6
> observation Patient 1 1 2 Male abdomen chest 3
> ******************************************************************************************************************
*
* 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/