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]

st: Equal times in TDC data set


From   "Lythgoe, Dan" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: Equal times in TDC data set
Date   Thu, 22 Nov 2012 16:14:29 +0000

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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index