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]

Re: st: Equal times in TDC data set


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Equal times in TDC data set
Date   Thu, 22 Nov 2012 12:37:00 -0600

Scott


On Thu, Nov 22, 2012 at 10:14 AM, Lythgoe, Dan
<D.Lythgoe@liverpool.ac.uk> wrote:
> Dear Statalisters,
>
> I am playing around with time dependent variates and have a data set in the following format:
>
> id      record_no       time    event
> 6       1               1       0
> 6       2               15      1
> 7       1               5       0
> 7       2               30      1
> 8       1               10      0
> 8       2               10      1
>
> In order to -stset- my data I cannot have two equal times for the same patient (as per patient 8 above). Is there a straight-forward way of adding, say, 0.1 to the second observation for all patients with two identical times?
>
> Many thanks in advance
> Dan Lythgoe
*
*   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