frailtypack
3.8.0Shared, Joint (Generalized) Frailty Models; Surrogate Endpoints
Overview
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.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 8%
- Documented parameters
- 95%
- Return-value docs
- 100%
- References docs
- 32%
Downloads
Dependencies
Code & Tests
- Cyclomatic complexity
- 15.5 median / 527 max
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
839 44 exported
Complexity
55.3 avg / 527 max
Call network
839 nodes / 1174 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
Datasets
| Name | Class | Rows × Cols | Also ships in |
|---|---|---|---|
| CPRSKbmtcrr | data.frame | 177 × 10 | – |
| Paq810 | data.frame | 810 × 8 | – |
| bcos | data.frame | 94 × 3 | – |
| colorectal | data.frame | 289 × 10 | in 2 packages |
| colorectalLongi | data.frame | 906 × 7 | – |
| dataAdditive | data.frame | 800 × 6 | – |
| dataMultiv | data.frame | 1,652 × 11 | – |
| dataNCC | data.frame | 1,510 × 10 | – |
| dataNested | data.frame | 400 × 7 | – |
| dataOvarian | data.frame | 1,192 × 7 | – |
| gastadj | data.frame | 3,288 × 7 | – |
| longDat | data.frame | 881 × 4 | – |
| readmission | data.frame | 861 × 11 | – |
| readmission2 | data.frame | 403 × 10 | – |
| reduce | data.frame | 939 × 7 | – |
| survDat | data.frame | 150 × 4 | – |
People & History
92 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 3.8.0Latest
- 3.7.12025-10-15 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 3.7.02025-03-06 · diff ↗
- 3.6.52024-12-14 · diff ↗
- 3.6.42024-11-15 · diff ↗
- 3.6.32024-10-20 · diff ↗
- 3.6.22024-07-07 · diff ↗
- unarchivedReturned to CRAN2024-07-07
- archivedRemoved from CRAN2024-07-06issues were not corrected even in a resubmission
- 3.6.12024-06-27 · diff ↗
- unarchivedReturned to CRAN2024-06-27
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2024-04-13issues were not corrected despite multiple re-submissions
- 3.6.02024-03-15 · diff ↗
Show 114 earlier events
- 3.5.12023-11-25 · diff ↗
- unarchivedReturned to CRAN2023-11-25
- archivedRemoved from CRAN2023-09-11issues were not corrected in time Use of Fortran RANDOM_NUMBER
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 3.5.02021-12-20 · diff ↗
- 3.4.02021-06-16 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 3.3.22020-10-14 · diff ↗
- unarchivedReturned to CRAN2020-10-14
- archivedRemoved from CRAN2020-08-26check issues were not corrected in time
- 3.3.02020-06-15 · diff ↗
- 3.2.0.12020-05-27 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 3.2.02020-04-12 · diff ↗
- 3.1.0.12020-01-17 · diff ↗
- 3.1.02020-01-16 · diff ↗
- 3.0.3.2.12019-10-30 · diff ↗
- 3.0.3.22019-05-16 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 3.0.3.12019-03-04 · diff ↗
- 3.0.2.12019-01-07 · diff ↗
- 3.0.22018-12-10 · diff ↗
- 3.0.12018-11-26 · diff ↗
- 2.13.22018-09-25 · diff ↗
- 2.13.12018-09-17 · diff ↗
- 2.12.72018-07-30 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2.12.62017-10-06 · diff ↗
- 2.12.52017-09-21 · diff ↗
- 2.12.42017-09-01 · diff ↗
- 2.12.32017-08-01 · diff ↗
- 2.12.22017-07-09 · diff ↗
- 2.12.12017-06-16 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 2.11.12017-03-21 · diff ↗
- 2.11.02017-03-11 · diff ↗
- 2.10.62017-03-07 · diff ↗
- 2.10.52017-02-03 · diff ↗
- 2.10.42017-01-04 · diff ↗
- 2.10.32016-10-19 · diff ↗
- 2.9.42016-07-25 · diff ↗
- 2.9.3.12016-07-08 · diff ↗
- 2.9.32016-07-07 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 2.8.32016-01-13 · diff ↗
- 2.8.22015-12-09 · diff ↗
- 2.8.12015-11-21 · diff ↗
- 2.7.6.12015-09-01 · diff ↗
- RR 3.2.0 released · 2015-04-16
- 2.7.52015-03-06 · diff ↗
- 2.7.42015-02-26 · diff ↗
- 2.7.22014-10-16 · diff ↗
- 2.7.12014-10-08 · diff ↗
- 2.72014-08-30 · diff ↗
- 2.6.12014-07-23 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 2.62014-03-24 · diff ↗
- 2.5.12014-02-13 · diff ↗
- 3.0.32014-02-12 · diff ↗
- 2.52013-11-20 · diff ↗
- 2.4.12013-04-26 · diff ↗
- 2.42013-04-05 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 2.32013-02-09 · diff ↗
- 2.15.32013-02-08 · diff ↗
- 2.2-272012-11-27 · diff ↗
- 2.15.22012-10-19 · diff ↗
- 2.2-262012-10-19 · diff ↗
- 2.2-252012-09-06 · diff ↗
- 2.2-242012-07-25 · diff ↗
- 2.2-232012-04-05 · diff ↗
- RR 2.15.0 released · 2012-03-30
- 2.2-222012-03-13 · diff ↗
- 2.15.02012-03-09 · diff ↗
- 2.2-212012-02-06 · diff ↗
- 2.14.22012-02-02 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.2-202011-10-26 · diff ↗
- 2.14.02011-10-25 · diff ↗
- 2.2-192011-10-24 · diff ↗
- 2.2-182011-09-01 · diff ↗
- 2.2-172011-08-03 · diff ↗
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 2.12.02010-10-13 · diff ↗
- 2.2-162010-10-13 · diff ↗
- 2.2-142010-05-18 · diff ↗
- 2.2-132010-05-01 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 2.2-122010-01-11 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 2.2-9.52009-10-23 · diff ↗
- 2.10.02009-10-22 · diff ↗
- RR 2.9.0 released · 2009-04-17
- RR 2.8.0 released · 2008-10-20
- 2.1-12008-07-28 · diff ↗
- RR 2.7.0 released · 2008-04-22
- RR 2.6.0 released · 2007-10-03
- RR 2.5.0 released · 2007-04-24
- RR 2.4.0 released · 2006-10-03
- RR 2.3.0 released · 2006-04-24
- 2.0-22005-11-21 · diff ↗
- 2.2.12005-11-18 · diff ↗
- 2.0-12005-11-18 · diff ↗
- RR 2.2.0 released · 2005-10-06
- 2.0-02005-05-30 · diff ↗
- 2.1.12005-05-17 · diff ↗
- RR 2.1.0 released · 2005-04-18
- 1.0-02005-03-26 · diff ↗
- 2.1.02005-03-21 · diff ↗
- 0.8-22005-02-22 · diff ↗
- 0.8-12005-02-22
- RR 2.0.0 released · 2004-10-04
Package metadata
- First published
- 2005-02-22
- Total releases
- 92 / 21 yrs
- License
- GPL (>= 2.0)
- Minimum R
- ≥ 3.5.0
- Bundled data
- 160 KB / 16 files
- Download size
- 3.7 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet