Statalist


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

st: stsplit for for data with multiple records per subject


From   "Weichle, Thomas" <[email protected]>
To   <[email protected]>
Subject   st: stsplit for for data with multiple records per subject
Date   Tue, 22 Dec 2009 13:57:11 -0600

Hi Statalisters,
I am working with data that consists of multiple records per subject and
would like to split the data at to create a time varying covariate.
However, the event in which I would like to split can occur multiple
times per subject as well.  The code I'm using is incorrectly doing the
split.  The code I'm trying is the following:

stsplit cross_ind, at(0) after(time=asis(dx_to_claim_day))

So, starting at the reference time of diagnosis, I'm trying to split
each time a subject "crosses" a particular defined point and this
crossing can occur multiple times.

Tom Weichle
Math Statistician
Center for Management of Complex Chronic Care (CMC3)
Hines VA Hospital, Bldg 1, C202
708-202-8387 ext. 24261
[email protected] 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index