Re: [R] Repeated measures Cox regression ??coxph??

2013-08-16 Thread Göran Broström
Sorry I'm late with this. On 07/26/2013 02:02 PM, Terry Therneau wrote: Two choices. If this were a linear model, do you like the GEE approach or a mixed effects approach? Assume that subject is a variable containing a per-subject identifier. GEE approach: add + cluster(subject) to the model

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-26 Thread Göran Broström
On 07/26/2013 04:06 AM, John Sorkin wrote: David Thank you for your thoughts. The data I am analyzing do not come from a clinical trial but rather from a cohort study whose aim is to determine risk factors for surgical therapy to treat their joints. John As David explained, there are several

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-26 Thread Terry Therneau
Two choices. If this were a linear model, do you like the GEE approach or a mixed effects approach? Assume that subject is a variable containing a per-subject identifier. GEE approach: add + cluster(subject) to the model statement in coxph Mixed models approach: Add + (1|subject) to the

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-26 Thread Marc Schwartz
Thanks Terry. Good points. I recalled last night some exchanges on r-sig-mixed-models regarding a reasonable number of 'replications' for the estimation of random effects and it occurred to me that with this study, you will have 0, 1 or 2 events per subject, depending upon the subject risk

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-26 Thread John Sorkin
Marc, Thank you for your comments. The data has been previously collected, so the study is a non-concurrent prospective analysis, i.e. retrospective analysis. John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine

[R] Repeated measures Cox regression ??coxph??

2013-07-25 Thread John Sorkin
Colleagues, Is there any R package that will allow one to perform a repeated measures Cox Proportional Hazards regression? I don't think coxph is set up to handle this type of problem, but I would be happy to know that I am not correct. I am doing a study of time to hip joint replacement. As

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-25 Thread Marc Schwartz
On Jul 25, 2013, at 2:11 PM, John Sorkin jsor...@grecc.umaryland.edu wrote: Colleagues, Is there any R package that will allow one to perform a repeated measures Cox Proportional Hazards regression? I don't think coxph is set up to handle this type of problem, but I would be happy to know

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-25 Thread David Winsemius
On Jul 25, 2013, at 12:27 PM, Marc Schwartz wrote: On Jul 25, 2013, at 2:11 PM, John Sorkin jsor...@grecc.umaryland.edu wrote: Colleagues, Is there any R package that will allow one to perform a repeated measures Cox Proportional Hazards regression? I don't think coxph is set up to

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-25 Thread Marc Schwartz
On Jul 25, 2013, at 4:45 PM, David Winsemius dwinsem...@comcast.net wrote: On Jul 25, 2013, at 12:27 PM, Marc Schwartz wrote: On Jul 25, 2013, at 2:11 PM, John Sorkin jsor...@grecc.umaryland.edu wrote: Colleagues, Is there any R package that will allow one to perform a repeated

Re: [R] Repeated measures Cox regression ??coxph??

2013-07-25 Thread John Sorkin
David Thank you for your thoughts. The data I am analyzing do not come from a clinical trial but rather from a cohort study whose aim is to determine risk factors for surgical therapy to treat their joints. John Sent from my iPhone On Jul 25, 2013, at 9:15 PM, Marc Schwartz