rstrans
function). It inverses the time from Y to T in relative survival using the
given ratetable. The times Y can be produced with the rstrans
function, in which case, this is the reverse
function. This function does the transformation for one person at a time.invtime(y, age, sex, year, scale, ratetable, lower, upper)
ratetable
.ratetable
is in units/day, scale = 365.25
causes the output
to be reported in years.survexp.us
.lower
rstrans
data(slopop)
invtime(y = 0.1, age = 23011, sex = 1, year = 9497, ratetable = slopop)
Run the code above in your browser using DataLab