[R] exponential proportional hazard model

From: Daniel Gutknecht <Daniel.Gutknecht_at_gmx.de>
Date: Wed 09 Aug 2006 - 18:01:06 EST

Dear R-users,

I am looking for a function designed to handle parametric proportional hazard models with a piecewise constant baseline hazard (i.e. dummies for annual intervals) and time-dependent covariates since I'm especially interested about the effect of those covariates on the baseline hazard. I tried survreg() but this doesn't seem to work since my data looks like this

id/ start/ stop/ censoring/ covariates  
 1/   0/     5/     0/      ...
 1/   5/     8/     1/
 2/   0/     4/     0/

and survreg(Surv(start,stop,censoring)~covariates,...) always returns 'invalid survival type' (specifying the type="right" returns "wrong number of args..."). Am I missing something or is there a function that can handle this kind of data. Thanks


R-help@stat.math.ethz.ch mailing list
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 Aug 09 19:08:24 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 09 Aug 2006 - 20:22:51 EST.

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