Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Coding time-varying variables in Cox regression


From   "[email protected]" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   Re: st: Coding time-varying variables in Cox regression
Date   Mon, 9 Jun 2008 16:21:40 -0700

I think most of your questions could be addressed by reshaping your
TREATx variables which would result in a single variable TREAT which
takes the value of TREAT1 for the first record, the value of TREAT2
for the 2nd record and so on.

Type help reshape
most likely you will end up with something like:
 reshape long TREAT, i(your_ID_variable) etc


salah mahmud
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

Privileged, confidential or patient identifiable information may be contained in this message. This information is meant only for the use of the intended recipients. If you are not the intended recipient, or if the message has been addressed to you in error, do not read, disclose, reproduce, distribute, disseminate or otherwise use this transmission. Instead, please notify the sender by reply e-mail, and then destroy all copies of the message and any attachments.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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