[R] Survival: pyears and ratetable: expected events

Jim Trabas jim.trabas at gmail.com
Sat May 28 09:50:48 CEST 2011


Hi thanks, 

The conventional method is solid (cross multiplication of patient years at
each age and year and gender, with the corresponding risk for death at each
age year and gender). I get about 26 expected deaths (verified by many
different sources)

Now what I am trying to do is get the same answer with the pyears function
using a ratetable, and I am not being successful at all. Could one help be
with the syntax, lets assume for now I want to use the survexp.us ratetable.
Or help me with how my variables should be formated, (days? years? scale?
asDate? Julian date? days difference from an origin? ) and entered in the
pyears method? Or give me similar working example that I can decompose and
fit to my problem?

David sorry, I ment survexp.us (the standard in the survival package)

Thanks to all, JT

--
View this message in context: http://r.789695.n4.nabble.com/Survival-pyears-and-ratetable-expected-events-tp3553208p3557000.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list