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

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Sun 25 Jul 2004 - 03:36:14 EST

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.

        -thomas



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jul 25 03:44:58 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:13 EST