Description Usage Arguments Details Value References See Also Examples
Tests if there is a difference between two or more net survival curves using a logrank type test.
1 
formula 
a formula object, with the response as a NOTE: The time must be in days, and the same
is required for the ratetable variables (the variables used in the population tables), for example age and year (year must be
given in the 
data 
a data.frame in which to interpret the variables named in the

ratetable 
a table of event rates, organized as a 
na.action 
a missingdata filter function, applied to the model.frame,
after any subset argument has been used. Default is

precision 
Precision for numerical integration. Default is 1, which means that daily intervals are taken, the value may be decreased to get a higher precision or increased to achieve a faster calculation. The calculation intervals always include at least all times of event and censoring as border points. 
NOTE: All times used in the formula argument must be specified in days. This is true for the followup time as well as for
any variables needed ratetable
object, like age
and year
.
a rsdiff
object; can be printed with print
.
Graffeo, N., Castell, F., Belot, A. and Giorgi, R. (2016) "A logranktype test to compare net survival distributions. Biometrics. doi: 10.1111/biom.12477" Pavlic, K., Pohar Perme, M. (2017) "On comparison of net survival curves. BMC Med Res Meth. doi: 10.1186/s1287401703513"
1 2 3 4 5 6 7  data(slopop)
data(rdata)
#calculate the relative survival curve
#note that the variable year is in the date format  the number of days since 01.01.1960 and that
#age must be multiplied by 365.241 in order to be expressed in days.
rs.diff(Surv(time,cens)~sex+ratetable(age=age*365.241,sex=sex,
year=year),ratetable=slopop,data=rdata)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.