Statalist The Stata Listserver


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

Re: st: time-dependent variables in survival analysis


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: time-dependent variables in survival analysis
Date   Sat, 15 Apr 2006 09:21:31 +0100 (BST)

Stephan:
You will have to make multiple observation data (e.g. one observation per year) by using -stsplit-
prior to -stset-. -stsplit- will make an observation for each year since the start time until the
end time. It will also create an id variable identifying the different persons, and a time
variable. You can use the time variabel + the age when time started as a time varying age
variable, etc.

Stephen Jenkins has section on creating time varying covariates using Stata on the survival
analysis section on his website http://www.iser.essex.ac.uk/teaching/degree/stephenj/ec968/ 

HTH,
Maarten

--- Stephan Michelson <[email protected]> wrote:
> How do I define time-dependent variables that are not events, but take on different values at
the > times of events (ultimately to become independent variables in stcox)?.


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
*
*   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