Package: survPen 1.6.0

survPen: Multidimensional Penalized Splines for Survival and Net Survival Models

Fits hazard and excess hazard models with multidimensional penalized splines allowing for time-dependent effects, non-linear effects and interactions between several continuous covariates. In survival and net survival analysis, in addition to modelling the effect of time (via the baseline hazard), one has often to deal with several continuous covariates and model their functional forms, their time-dependent effects, and their interactions. Model specification becomes therefore a complex problem and penalized regression splines represent an appealing solution to that problem as splines offer the required flexibility while penalization limits overfitting issues. Current implementations of penalized survival models can be slow or unstable and sometimes lack some key features like taking into account expected mortality to provide net survival and excess hazard estimates. In contrast, survPen provides an automated, fast, and stable implementation (thanks to explicit calculation of the derivatives of the likelihood) and offers a unified framework for multidimensional penalized hazard and excess hazard models. survPen may be of interest to those who 1) analyse any kind of time-to-event data: mortality, disease relapse, machinery breakdown, unemployment, etc 2) wish to describe the associated hazard and to understand which predictors impact its dynamics. See Fauvernier et al. (2019a) <doi:10.21105/joss.01434> for an overview of the package and Fauvernier et al. (2019b) <doi:10.1111/rssc.12368> for the method.

Authors:Mathieu Fauvernier [aut, cre], Laurent Roche [aut], Laurent Remontet [aut], Zoe Uhry [ctb], Nadine Bossard [ctb]

survPen_1.6.0.tar.gz
survPen_1.6.0.zip(r-4.5)survPen_1.6.0.zip(r-4.4)survPen_1.6.0.zip(r-4.3)
survPen_1.6.0.tgz(r-4.4-x86_64)survPen_1.6.0.tgz(r-4.4-arm64)survPen_1.6.0.tgz(r-4.3-x86_64)survPen_1.6.0.tgz(r-4.3-arm64)
survPen_1.6.0.tar.gz(r-4.5-noble)survPen_1.6.0.tar.gz(r-4.4-noble)
survPen_1.6.0.tgz(r-4.4-emscripten)survPen_1.6.0.tgz(r-4.3-emscripten)
survPen.pdf |survPen.html
survPen/json (API)
NEWS

# Install 'survPen' in R:
install.packages('survPen', repos = c('https://fauvernierma.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/fauvernierma/survpen/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • datCancer - Patients diagnosed with cervical cancer

On CRAN:

6.65 score 9 stars 1 packages 82 scripts 967 downloads 2 mentions 27 exports 3 dependencies

Last updated 1 years agofrom:5b7792738a. Checks:OK: 1 NOTE: 8. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 04 2024
R-4.5-win-x86_64NOTENov 04 2024
R-4.5-linux-x86_64NOTENov 04 2024
R-4.4-win-x86_64NOTENov 04 2024
R-4.4-mac-x86_64NOTENov 04 2024
R-4.4-mac-aarch64NOTENov 04 2024
R-4.3-win-x86_64NOTENov 04 2024
R-4.3-mac-x86_64NOTENov 04 2024
R-4.3-mac-aarch64NOTENov 04 2024

Exports:%cross%%mult%%vec%colSums2constraintcrscrs.FPderiv_Rdesign.matrixgrad_rhoHess_rhoinstrmodel.consNR.betaNR.rhopwcstrdrepamsmfsmooth.conssmooth.cons.integralsmooth.specsurvPensurvPen.fittensor.intensor.prod.Stensor.prod.X

Dependencies:RcppRcppEigenstatmod

Survival analysis with survPen

Rendered fromsurvival_analysis_with_survPen.Rmdusingknitr::rmarkdownon Nov 04 2024.

Last update: 2023-09-11
Started: 2019-05-02

Readme and manuals

Help Manual

Help pageTopics
Matrix cross-multiplication between two matrices%cross%
Matrix multiplication between two matrices%mult%
Matrix multiplication between a matrix and a vector%vec%
colSums of a matrixcolSums2
Sum-to-zero constraintconstraint
Implementation of the corrected variance Vccor.var
Bases for cubic regression splines (equivalent to "cr" in 'mgcv')crs
Penalty matrix constructor for cubic regression splinescrs.FP
Patients diagnosed with cervical cancerdatCancer
Derivative of a Choleski factorderiv_R
Design matrix for the model needed in Gauss-Legendre quadraturedesign.matrix
Gradient vector of LCV and LAML wrt rho (log smoothing parameters)grad_rho
Hessian matrix of LCV and LAML wrt rho (log smoothing parameters)Hess_rho
Position of the nth occurrence of a string in another oneinstr
Reverses the initial reparameterization for stable evaluation of the log determinant of the penalty matrixinv.repam
Design and penalty matrices for the modelmodel.cons
Inner Newton-Raphson algorithm for regression parameters estimationNR.beta
Outer Newton-Raphson algorithm for smoothing parameters estimation via LCV or LAML optimizationNR.rho
Hazard and Survival prediction from fitted 'survPen' modelpredict.survPen
print summary for a 'survPen' fitprint.summary.survPen
Defining piecewise constant (excess) hazard in survPen formulaepwcst
Defining random effects in survPen formulaerd
Applies initial reparameterization for stable evaluation of the log determinant of the penalty matrixrepam
Defining smooths in survPen formulaesmf tensor tint
Design and penalty matrices of penalized splines in a smooth.spec objectsmooth.cons
Design matrix of penalized splines in a smooth.spec object for Gauss-Legendre quadraturesmooth.cons.integral
Covariates specified as penalized splinessmooth.spec
Summary for a 'survPen' fitsummary.survPen
(Excess) hazard model with (multidimensional) penalized splines and integrated smoothness estimationsurvPen
(Excess) hazard model with multidimensional penalized splines for given smoothing parameterssurvPen.fit
Fitted survPen objectsurvPenObject
tensor model matrix for two marginal basestensor.in
Tensor product for penalty matricestensor.prod.S
tensor model matrixtensor.prod.X