On 05/18/2013 05:00 AM, r-help-requ...@r-project.org wrote:
hi all
this command used tt function for all variables.
How can i define a different function for each variable?
  >  exCox.all<-coxph(Surv(SURVT,STATUS) ~
RX+LOGWBC+SEX+tt(RX)+tt(LOGWBC)+tt(SEX),
data=rem.data,tt=function(x,t,...) log(t)*x))
thank you

There is currently no way to do what you ask.  Could you give me an example of 
why it is
necessary?  I'd never thought of adding such a feature.

Terry Therneau

______________________________________________
R-help@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.

Reply via email to