Learn R Programming

timereg (version 2.0.7)

Flexible Regression Models for Survival Data

Description

Programs for Martinussen and Scheike (2006), `Dynamic Regression Models for Survival Data', Springer Verlag. Plus more recent developments. Additive survival model, semiparametric proportional odds model, fast cumulative residuals, excess risk models and more. Flexible competing risks regression including GOF-tests. Two-stage frailty modelling. PLS for the additive risk model. Lasso in the 'ahaz' package.

Copy Link

Version

Install

install.packages('timereg')

Monthly Downloads

12,654

Version

2.0.7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Thomas Scheike

Last Published

August 18th, 2025

Functions in timereg (2.0.7)

melanoma

The Melanoma Survival Data
pval

For internal use
cum.residuals

Model validation based on cumulative residuals
diabetes

The Diabetic Retinopathy Data
event.split

EventSplit (SurvSplit).
dynreg

Fit time-varying regression model
csl

CSL liver chirrosis data
cox.ipw

Missing data IPW Cox
krylow.pls

Fits Krylow based PLS for additive hazards model
mela.pop

Melanoma data and Danish population mortality by age and sex
prep.comp.risk

Set up weights for delayed-entry competing risks data for comp.risk function
plot.aalen

Plots estimates and test-processes
plot.dynreg

Plots estimates and test-processes
mypbc

my version of the PBC data of the survival package
prop

Identifies the multiplicative terms in Cox-Aalen model and proportional excess risk model
predict.timereg

Predictions for Survival and Competings Risks Regression for timereg
pava.pred

Make predictions of predict functions in rows mononotone
plot.cum.residuals

Plots cumulative residuals
pe.sasieni

Fits Proportional excess hazards model with fixed offsets
print.aalen

Prints call
prop.odds

Fit Semiparametric Proportional 0dds Model
recurrent.marginal.mean

Estimates marginal mean of recurrent events
summary.aalen

Prints summary statistics
recurrent.marginal.coxmean

Estimates marginal mean of recurrent events based on two cox models
summary.cum.residuals

Prints summary statistics for goodness-of-fit tests based on cumulative residuals
qcut

Cut a variable
res.mean

Residual mean life (restricted)
restricted.residual.mean

Estimates restricted residual mean for Cox or Aalen model
prop.excess

Fits Proportional excess hazards model
wald.test

Makes wald test
timecox

Fit Cox model with partly timevarying effects.
two.stage

Fit Clayton-Oakes-Glidden Two-Stage model
prop.odds.subdist

Fit Semiparametric Proportional 0dds Model for the competing risks subdistribution
TRACE

The TRACE study group of myocardial infarction
Event

Event history object
cox

Identifies proportional excess terms of model
cd4

The multicenter AIDS cohort study
cox.aalen

Fit Cox-Aalen survival model
comp.risk

Competings Risks Regression
const

Identifies parametric terms of model
bmt

The Bone Marrow Transplant Data
aalen

Fit additive hazards model
Gprop.odds

Fit Generalized Semiparametric Proportional 0dds Model