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, statalist.org is already up and running.


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

st: Repeated rows for the same study participant


From   Ziad Khatib <ziad.khatib@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Repeated rows for the same study participant
Date   Fri, 30 Sep 2011 09:12:14 -0400

Dear STATA lister,

I have dataset for a longitudinal dataset (at study enrolment, labeled
visit 1 and 4 follow-up time points).
Sometimes there is more than one row per patient per time point. I am
trying to clean the dataset to keep it one row per patient per time
point.

Example below for the current dataset (ID numbers 101 and 103 were
repeated at visits 1 and 2 respectively)

visit       id        HPV6         HPV18
1           101       1                  0
1           101       1                  0
1           102       0                  0
1           103       1                  1
2           100       1                  1
2           101       1                  0
2           103       1                  0
2           103       1                  0
etc...



Thank you in advance and best regards
Ziad

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