[R] Regression models w/ splines

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Apr 9 22:55:02 CEST 2004


"John Fieberg" <John.Fieberg at dnr.state.mn.us> writes:

> Hi - I am fitting various Cox PH models with spline predictors.  After
> fitting the model, I would like to use termplot() to examine the
> functional form of the fitted model (e.g., to obtain a plot of the
> relative risk (or log r.r.) versus the predictors). 
> 
> When there is only 1 predictor in the model, termplot returns a "?". 
> In this case, I have not been able to figure out how to create the
> desired plot.  Otherwise,termplot is easy to use. 

Kasper Hansen and Per Jensen from my department reported this
recently, AFAIR with a suggested fix. You might want to go over the
archives for the last month or so.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list