Package: relsurv 2.3-2

Damjan Manevski

relsurv: Relative Survival

Contains functions for analysing relative survival data, including nonparametric estimators of net (marginal relative) survival, relative survival ratio, crude mortality, methods for fitting and checking additive and multiplicative regression models, transformation approach, methods for dealing with population mortality tables. Work has been described in Pohar Perme, Pavlic (2018) <doi:10.18637/jss.v087.i08>.

Authors:Maja Pohar Perme [aut], Damjan Manevski [aut, cre]

relsurv_2.3-2.tar.gz
relsurv_2.3-2.tar.gz(r-4.5-noble)relsurv_2.3-2.tar.gz(r-4.4-noble)
relsurv_2.3-2.tgz(r-4.4-emscripten)relsurv_2.3-2.tgz(r-4.3-emscripten)
relsurv.pdf |relsurv.html
relsurv/json (API)

# Install 'relsurv' in R:
install.packages('relsurv', repos = 'https://cloud.r-project.org')
Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:
  • colrec - Relative Survival Data
  • ebmt1wide - EBMT Data Taken From Package mstate
  • rdata - Survival Data
  • slopop - Census Data Set for the Slovene Population

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

openblascpp

4.25 score 3 stars 4 packages 2.4k downloads 20 mentions 27 exports 113 dependencies

Last updated 2 months agofrom:ca0842d2af. Checks:3 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 29 2025
R-4.5-linux-x86_64OKMar 29 2025
R-4.4-linux-x86_64OKMar 29 2025

Exports:cmp.relepaexpprep2invtimejoinratenessieplot_fplot_yearspopsurvpredict.rsaddresiduals.rsaddrs.brrs.diffrs.survrs.surv.rsaddrs.zphrsaalenrsaddrsmulrstranssurvaalensurvfit.rsaddsurvsplittransratetransrate.hldtransrate.hmdyears

Dependencies:backportsbase64encbslibcachemcheckmatecliclustercmprskcodetoolscolorspacecpp11data.tablediagramdigestdoParalleldplyrevaluatefansifarverfastmapfontawesomeforeachforeignFormulafsfuturefuture.applygenericsggplot2globalsgluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobanditeratorsjquerylibjsonliteKernSmoothknitrlabelinglatticelavalazyevallifecyclelistenvmagrittrMASSMatrixMatrixModelsmemoisemetsmgcvmimemultcompmunsellmvtnormnlmennetnumDerivpammtoolsparallellypecpillarpkgconfigplotrixpolsplineprodlimprogressrPublishpurrrquantregR6rangerrappdirsRColorBrewerRcppRcppArmadilloRcppEigenriskRegressionrlangrmarkdownrmsrpartrstudioapisandwichsassscalesscamshapeSparseMSQUAREMstringistringrsurvivalTH.datatibbletidyrtidyselecttimeregtinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo

Citation

To cite relsurv in publications use:

Perme MP, Pavlič K (2018). “Nonparametric Relative Survival Analysis with the R Package relsurv.” Journal of Statistical Software, 87(8), 1–27. doi:10.18637/jss.v087.i08.

Manevski D, Ružič Gorenjec N, Kragh Andersen P, Pohar Perme M (2023). “Expected life years compared to the general population.” Biometrical Journal. doi:10.1002/bimj.202200070.

For regression models cite:

M. Pohar, J. Stare (2006). “Relative survival analysis in R.” Computer methods and programs in biomedicine, 81, 272-278. doi:10.1016/j.cmpb.2006.01.004.

Corresponding BibTeX entries:

  @Article{,
    title = {Nonparametric Relative Survival Analysis with the {R}
      Package {relsurv}},
    author = {Maja Pohar Perme and Klemen Pavli\v{c}},
    journal = {Journal of Statistical Software},
    year = {2018},
    volume = {87},
    number = {8},
    pages = {1--27},
    doi = {10.18637/jss.v087.i08},
  }
  @Article{,
    title = {Expected life years compared to the general population},
    author = {Damjan Manevski and Nina {Ru\v{z}i\v{c} Gorenjec} and Per
      {Kragh Andersen} and Maja {Pohar Perme}},
    journal = {Biometrical Journal},
    year = {2023},
    doi = {10.1002/bimj.202200070},
  }
  @Article{,
    title = {Relative survival analysis in {R}},
    author = {{M. Pohar} and {J. Stare}},
    year = {2006},
    journal = {Computer methods and programs in biomedicine},
    volume = {81},
    issue = {3},
    pages = {272-278},
    doi = {10.1016/j.cmpb.2006.01.004},
  }

Readme and manuals

Help Manual

Help pageTopics
Compute crude probability of deathcmp.rel print.cmp.rel
Relative Survival Datacolrec
EBMT Data Taken From Package mstateebmt1wide
Excess hazard function smoothingepa
expprep2 functionexpprep2
Inverse transforming of time in Relative Survivalinvtime
Join ratetablesjoinrate
Net Expected Sample Size Is Estimatednessie
Plot the absolute risk (observed and population curve)plot_f
Plot the years measureplot_years
Plot the crude probability of deathplot.cmp.rel
Graphical Inspection of Proportional Hazards Assumption in Relative Survival Modelsplot.rs.zph
Calculate the expected (population) survivalpopsurv
Subject-specific prediction from rsaddpredict.rsadd
Survival Datardata
Calculate Residuals for a "rsadd" Fitresiduals.rsadd
Test the Proportional Hazards Assumption for Relative Survival Regression Modelsplot.rs.br print.rs.br rs.br
Test Net Survival Curve Differencesprint.rsdiff rs.diff
Compute a Relative Survival Curvers.surv
Compute a Relative Survival Curve from an additive relative survival modelrs.surv.rsadd
Behaviour of Covariates in Time for Relative Survival Regression Modelsrs.zph
Fit an extended additive hazards model using relative survivalrsaalen
Fit an Additive model for Relative Survivalrsadd
Fit Andersen et al Multiplicative Regression Model for Relative Survivalrsmul
Fit Cox Proportional Hazards Model in Transformed Timerstrans
Census Data Set for the Slovene Populationslopop
Summary of the crude probability of deathsummary.cmp.rel
Fit an additive hazards modelsurvaalen
Compute a Predicited Survival Curvesurvfit.rsadd
Split a Survival Data Set at Specified Timessurvsplit
Reorganize Data into a Ratetable Objecttransrate
Reorganize Data obtained from Human Life-Table Database into a Ratetable Objecttransrate.hld
Reorganize Data obtained from Human Mortality Database into a Ratetable Objecttransrate.hmd
Compute one of the life years measuresyears