Skip to content

frailtypack

Shared, Joint (Generalized) Frailty Models; Surrogate Endpoints

v3.8.0 · Nov 22, 2025 · GPL (>= 2.0)

Description

The following several classes of frailty models using a penalized likelihood estimation on the hazard function but also a parametric estimation can be fit using this R package: 1) A shared frailty model (with gamma or log-normal frailty distribution) and Cox proportional hazard model. Clustered and recurrent survival times can be studied. 2) Additive frailty models for proportional hazard models with two correlated random effects (intercept random effect with random slope). 3) Nested frailty models for hierarchically clustered data (with 2 levels of clustering) by including two iid gamma random effects. 4) Joint frailty models in the context of the joint modelling for recurrent events with terminal event for clustered data or not. A joint frailty model for two semi-competing risks and clustered data is also proposed. 5) Joint general frailty models in the context of the joint modelling for recurrent events with terminal event data with two independent frailty terms. 6) Joint Nested frailty models in the context of the joint modelling for recurrent events with terminal event, for hierarchically clustered data (with two levels of clustering) by including two iid gamma random effects. 7) Multivariate joint frailty models for two types of recurrent events and a terminal event. 8) Joint models for longitudinal data and a terminal event. 9) Trivariate joint models for longitudinal data, recurrent events and a terminal event. 10) Joint frailty models for the validation of surrogate endpoints in multiple randomized clinical trials with failure-time and/or longitudinal endpoints with the possibility to use a mediation analysis model. 11) Conditional and Marginal two-part joint models for longitudinal semicontinuous data and a terminal event. 12) Joint frailty-copula models for the validation of surrogate endpoints in multiple randomized clinical trials with failure-time endpoints. 13) Generalized shared and joint frailty models for recurrent and terminal events. Proportional hazards (PH), additive hazard (AH), proportional odds (PO) and probit models are available in a fully parametric framework. For PH and AH models, it is possible to consider type-varying coefficients and flexible semiparametric hazard function. Prediction values are available (for a terminal event or for a new recurrent event). Left-truncated (not for Joint model), right-censored data, interval-censored data (only for Cox proportional hazard and shared frailty model) and strata are allowed. In each model, the random effects have the gamma or normal distribution. Now, you can also consider time-varying covariates effects in Cox, shared and joint frailty models (1-5). The package includes concordance measures for Cox proportional hazards models and for shared frailty models. 14) Competing Joint Frailty Model: A single type of recurrent event and two terminal events. 15) functions to compute power and sample size for four Gamma-frailty-based designs: Shared Frailty Models, Nested Frailty Models, Joint Frailty Models, and General Joint Frailty Models. Each design includes two primary functions: a power function, which computes power given a specified sample size; and a sample size function, which computes the required sample size to achieve a specified power. 16) Weibull Illness-Death model with or without shared frailty between transitions. Left-truncated and right-censored data are allowed. 17) Weibull Competing risks model with or without shared frailty between the transitions. Left-truncated and right-censored data are allowed. Moreover, the package can be used with its shiny application, in a local mode or by following the link below.

Downloads

3.1K

Last 30 days

2358th

9.7K

Last 90 days

31.4K

Last year

Trend: -12% (30d vs prior 30d)

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (3 non-OK)
NOTE r-oldrel-macos-arm64

installed package size

installed size is 12.5Mb
  sub-directories of 1Mb or more:
    R      2.1Mb
    help   2.8Mb
    libs   6.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 13.0Mb
  sub-directories of 1Mb or more:
    R      2.1Mb
    help   2.8Mb
    libs   6.6Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  9.8Mb
  sub-directories of 1Mb or more:
    R      1.7Mb
    help   2.8Mb
    libs   3.6Mb

Additional Issues

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is 12.5Mb
  sub-directories of 1Mb or more:
    R      2.1Mb
    help   2.8Mb
    libs   6.1Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is 13.0Mb
  sub-directories of 1Mb or more:
    R      2.1Mb
    help   2.8Mb
    libs   6.6Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  9.8Mb
  sub-directories of 1Mb or more:
    R      1.7Mb
    help   2.8Mb
    libs   3.6Mb

Reverse Dependencies (6)

Dependency Network

Dependencies Reverse dependencies boot doBy MASS survC1 survival matrixcalc nlme rootSolve shiny statmod dplyr marqLevAlg tidyr PDXpower frailtyROC INLAjoint icensBKL recforest tram frailtypack

Version History

new 3.8.0 Mar 10, 2026
updated 3.8.0 ← 3.7.1 diff Nov 22, 2025
updated 3.7.1 ← 3.7.0 diff Oct 14, 2025
updated 3.7.0 ← 3.6.5 diff Mar 5, 2025
updated 3.6.5 ← 3.6.4 diff Dec 13, 2024
updated 3.6.4 ← 3.6.3 diff Nov 14, 2024
updated 3.6.3 ← 3.6.2 diff Oct 19, 2024
updated 3.6.2 ← 3.6.1 diff Jul 6, 2024
updated 3.6.1 ← 3.6.0 diff Jun 26, 2024
updated 3.6.0 ← 3.5.1 diff Mar 14, 2024
updated 3.5.1 ← 3.5.0 diff Nov 24, 2023
updated 3.5.0 ← 3.4.0 diff Dec 19, 2021
updated 3.4.0 ← 3.3.2 diff Jun 15, 2021
updated 3.3.2 ← 3.3.0 diff Oct 13, 2020
updated 3.3.0 ← 3.2.0.1 diff Jun 14, 2020
updated 3.2.0.1 ← 3.2.0 diff May 26, 2020
updated 3.2.0 ← 3.1.0.1 diff Apr 11, 2020
updated 3.1.0.1 ← 3.1.0 diff Jan 16, 2020
updated 3.1.0 ← 3.0.3.2.1 diff Jan 15, 2020
updated 3.0.3.2.1 ← 3.0.3.2 diff Oct 29, 2019