[R] survexp with weights

Terry Therneau therneau at mayo.edu
Thu Apr 21 19:44:15 CEST 2011

> lines(survexp( ~ trt, ratetable=pfit.wtd, data=pbc), col='purple')
Error in eval(expr, envir, enclos) : object 'albumin' not found

  The code does work, however, using the latest version of survival.
(Use of case weights in survexp languished on my to-do list for a long
long time.)

Terry Therneau

More information about the R-help mailing list