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. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.