Re: [R] cch function and time dependent covariates

2008-06-15 Thread Thomas Lumley
cch() does not allow for multiple records per person (as it says), and so doesn't allow for time-dependent covariates. -thomas On Thu, 12 Jun 2008, Jin Wang wrote: same subject id has to be multiple in mutiple times like following format, Multiple records per id not allowed in cch() so

Re: [R] cch function and time dependent covariates

2008-06-12 Thread Jin Wang
same subject id has to be multiple in mutiple times like following format, Multiple records per id not allowed in cch() so it's difficult to use cch() for time dependent covariate. Maybe coxph() is alternative, but seems difficult because coxph() and cch() return different estimate for same data "n

Re: [R] cch function and time dependent covariates

2008-06-12 Thread Jin Wang
I tried your alternative method on the example in cch() description manual. The example data "nwtco" has not time-dependent covariates yet. I test cch() and coxph() on the same data. But the estimation result is different. I don't know if I did anything wrong. subcoh <- nwtco$in.subcohort selccoh

Re: [R] cch function and time dependent covariates

2008-06-12 Thread Terry Therneau
- begin included message In case cohort study, we can fit proportional hazard regression model to case-cohort data. In R, the function is cch() in Survival package Now I am working on case cohort analysis with time dependent covariates using cch() of "Survival" R package. I wonder if cch() pro