gallon li
2008-Feb-18 12:02 UTC
[R] can we include nonparametric component for survival regression?
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 hazard is actually modeled additively. That is not what i want. [[alternative HTML version deleted]]
Thomas Lumley
2008-Feb-18 17:20 UTC
[R] can we include nonparametric component for survival regression?
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 only found a package called addreg where > the hazard is actually modeled additively. That is not what i want.The survival package has pspline() for this purpose (assuming that by 'non-parametric' you mean a flexible smooth curve) -thomas Thomas Lumley Assoc. Professor, Biostatistics tlumley at u.washington.edu University of Washington, Seattle