Learn R Programming

⚠️There's a newer version (2.0.1) of this package.Take me there.

survPen (version 1.3.0)

Multidimensional Penalized Splines for Survival and Net Survival Models

Description

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) for an overview of the package and Fauvernier et al. (2019b) for the method.

Copy Link

Version

Install

install.packages('survPen')

Monthly Downloads

1,121

Version

1.3.0

License

GPL-3 | file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Mathieu Fauvernier

Last Published

February 3rd, 2020

Functions in survPen (1.3.0)

cor.var

Implementation of the corrected variance Vc
crs

Bases for cubic regression splines (equivalent to "cr" in mgcv)
crs.FP

Penalty matrix constructor for cubic regression splines
design.matrix

Design matrix for the model needed in Gauss-Legendre quadrature
datCancer

Patients diagnosed with cervical cancer
%vec%

Matrix multiplication between a matrix and a vector
print.summary.survPen

print summary for a survPen fit
model.cons

Design and penalty matrices for the model
repam

Applies initial reparameterization for stable evaluation of the log determinant of the penalty matrix
smooth.cons

Design and penalty matrices of penalized splines in a smooth.spec object
inv.repam

Reverses the initial reparameterization for stable evaluation of the log determinant of the penalty matrix
predict.survPen

Hazard and Survival prediction from fitted survPen model
tensor.in

tensor model matrix for two marginal bases
survPenObject

Fitted survPen object
instr

Position of the nth occurrence of a string in another one
survPen.fit

(Excess) hazard model with multidimensional penalized splines for given smoothing parameters
rd

Defining random effects in survPen formulae
survPen

(Excess) hazard model with (multidimensional) penalized splines and integrated smoothness estimation
smooth.cons.integral

Design matrix of penalized splines in a smooth.spec object for Gauss-Legendre quadrature
smooth.spec

Covariates specified as penalized splines
summary.survPen

Summary for a survPen fit
smf

Defining smooths in survPen formulae
tensor.prod.S

Tensor product for penalty matrices
tensor.prod.X

tensor model matrix
NR.beta

Inner Newton-Raphson algorithm for regression parameters estimation
%mult%

Matrix multiplication between two matrices
constraint

Sum-to-zero constraint
NR.rho

Outer Newton-Raphson algorithm for smoothing parameters estimation via LCV or LAML optimization