powered by
Uses background mortality rates to simulate background survival time for matching sex, age and year.
simSurv(d,mrt,rep=1,ltb=NULL,unif=TRUE)
Data frame containing sex, agedx, yrdx, surv, and status columns of observed data.
Mortality data binary made by mkMrt().
Number of simulated replicates of each observed case.
Life table data binary made by mkLT(). Default of NULL => skip it.
TRUE => death time in final year is uniform random draw. False => death at mid-point of year.
Input d with simulation rows added below it, identified as "simulated" in a new column called type.
SEERaBomb-package,mkSEER
# NOT RUN { library(SEERaBomb) mkLT() load("~/data/usMort/ltb.RData") tail(ltb$Female) # }
Run the code above in your browser using DataLab