Re: [R] can we include nonparametric component for survival regression?

2008-02-19 Thread gallon li
I've figured it out by repeatedly testing. It is to use a type='term' statement, just as used in gam. sorry to bother. On 2/19/08, gallon li <[EMAIL PROTECTED]> wrote: > > Thanks a lot, Prof Lumley. > > Now I can fit a model like > > coxfit=coxpy((time,censor)~pspline(x1)+x2+x3) > > but I am not

Re: [R] can we include nonparametric component for survival regression?

2008-02-19 Thread gallon li
Thanks a lot, Prof Lumley. Now I can fit a model like coxfit=coxpy((time,censor)~pspline(x1)+x2+x3) but I am not sure how to extract the estimated function for x1 alone. I tried to use predict function but couldn't find appropriate option to do this. if i only have one covariates, then the exam

Re: [R] can we include nonparametric component for survival regression?

2008-02-18 Thread Thomas Lumley
On Mon, 18 Feb 2008, gallon li wrote: > i am trying to fit a survival regression model (cox model or parametric > model) in R by including the covariate effects as a function m(x) instead of > just beta*x. is it possible to fit such a model? can someone recommend some > reference? I searched but o

[R] can we include nonparametric component for survival regression?

2008-02-18 Thread gallon li
i am trying to fit a survival regression model (cox model or parametric model) in R by including the covariate effects as a function m(x) instead of just beta*x. is it possible to fit such a model? can someone recommend some reference? I searched but only found a package called addreg where the haz