Statalist


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

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


From   "Salah Mahmud" <[email protected]>
To   [email protected]
Subject   Re: st: Coding time-varying variables in Cox regression
Date   Mon, 9 Jun 2008 18:04:34 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index