Re: [R] Survival Regression with multiple records per subject

From: Ronaldo Reis Junior <chrysopa_at_gmail.com>
Date: Wed, 30 Apr 2008 16:13:30 -0300

Em Qua 30 Abr 2008, Fabian Hefner escreveu:
> Here is an example:
>  
>    itm      ID     exercise      time
> 1.401869    1        0             1
> 1.324390    1        0             2
> 1.324390    1        0             3
> 1.333338    1        0             4
> 1.346761    1        0             5
> 1.315441    1        1             6
> 1.337812    2        0             1
> 1.319915    2        0             2
> 1.351235    2        1             3
> itm is the covariate;
> ID is the subject Id;
> exercise indicates if the subject is dead=1 or alive=0
>  
> How can I allocate the multiple records to one subject (for example record
> 1-6 are part of subject with ID 1 record 7-9 are part of subject with ID2)
> and process a survival regression.

Hi,

If I got it, the time must be converted to time to death, your table must be:

> itm ID exercise time to death
> 1.315441 1 1 6
> 1.351235 2 1 3

The problem is your itm covariate, may be it must be converted to de difference between the first value and the last value.

Inte
Ronaldo

-- 
"Send lawyers, guns and money..."
		-- Lyrics from a Warren Zevon song
--

> Prof. Ronaldo Reis Júnior
| .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Biologia Computacional | : :' : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil | `- Fone: (38) 3229-8187 | ronaldo.reis_at_unimontes.br | chrysopa_at_gmail.com | http://www.ppgcb.unimontes.br/ | ICQ#: 5692561 | LinuxUser#: 205366 ______________________________________________ R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Wed 30 Apr 2008 - 19:23:11 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 30 Apr 2008 - 19:30:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive