Re: [R] Cox Proportional Hazards model with a time-varying covariate

2011-04-01 Thread Paul Miller
Hi Terry and Kevin,   Thanks for your replies to my post. And thanks particularly to Terry for pointing out my confusion about the "exact partial likelihood" vs. the "exact marginal likelihood." I'm learning and so am likely to be confused about such things from time to time.   I had thought

Re: [R] Cox Proportional Hazards model with a time-varying covariate

2011-04-01 Thread Terry Therneau
> The R results I'm getting are similar to the SAS results but not very > close. For example, my coefficient for TRT is .2913 in R but SAS > gives .3450. I'd like to be able to run the R Code with method = > "exact" to make it as same as the AS example but I can't seem to get > it to work You n

[R] Cox Proportional Hazards model with a time-varying covariate

2011-03-31 Thread Paul Miller
Hello Everyone,   I'm learning how to perform various statistical analyses in R. I'm checking my understanding by replicating examples from my SAS books. Below is an attempt to replicate a Cox Proportional Hazards model with a time-varying covariate. I think I'm doing this correctly but am not c