[R] Porting plotterm() & gamterms() from s-plus

Thomas Lumley tlumley at u.washington.edu
Sat Jul 24 19:36:14 CEST 2004

On Fri, 23 Jul 2004, Jacob Etches wrote:

> I'm trying to plot pspline'd explanatory variables from coxph() models as per Therneau and Grambsch (Modeling Survival Data: Extending the Cox Model).  They have s-plus functions for this at:
> http://www.mayo.edu/hsr/people/therneau/book/sfunction/gamterms.s
> http://www.mayo.edu/hsr/people/therneau/book/sfunction/plotterm.s
> I'd like to make these plots in R, but they make use of non-R functions,
> and I'm not sure how to adapt gamterms and plotterm to R.  Have others
> done this, or does anyone have advice?

The termplot() function in R can already handle pspline() terms.


More information about the R-help mailing list