Package: MultiFrailty 0.1.0

MultiFrailty: Shared Frailty Regression Models with Inverse Gaussian, Generalized Lindley, and Gamma Frailty Distributions

Implements shared frailty regression models for survival data under eight censoring mechanisms: exact, right censoring (Kalbfleisch and Prentice, 2002), left censoring, interval censoring (Sun, 2006), progressive Type I censoring, and progressive Type II censoring (Balakrishnan and Aggarwala, 2000 <doi:10.1007/978-1-4612-1334-5>). Combines four frailty distributions -- Gamma (Clayton, 1978), Inverse Gaussian (Hougaard, 1984), and two variants of the Generalized Lindley (GL) distribution: GL Type 1, a two-component gamma mixture with distribution-specific scale/shape linkage (Pandey, Hanagal, and Tyagi, 2022), and GL Type 2, a two-component gamma mixture with a common rate parameter (Pandey and Tyagi, 2021 <doi:10.1134/S1995080222010140>) -- with two baseline hazard distributions: the two-parameter Weibull distribution (Weibull, 1951) and the three-parameter Generalized (Exponentiated) Weibull distribution (Mudholkar and Srivastava, 1993 <doi:10.1109/24.229504>). A no-frailty baseline-only model is also supported for nested model comparison. Maximum likelihood estimation is conducted using Newton-Raphson and Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithms via the 'maxLik' package (Henningsen and Toomet, 2011 <doi:10.1007/s00180-010-0217-1>). Provides standard errors, confidence intervals, hypothesis tests, Akaike Information Criterion (AIC, Akaike, 1974 <doi:10.1109/TAC.1974.1100705>), Bayesian Information Criterion (BIC, Schwarz, 1978 <doi:10.1214/aos/1176344136>), corrected Akaike Information Criterion (AICc, Hurvich and Tsai, 1989), Hannan-Quinn Information Criterion (HQIC, Hannan and Quinn, 1979), a bootstrap approximation of the Widely Applicable Information Criterion (WAIC, Watanabe, 2010), k-fold cross-validation, frailty variance estimation, survival, hazard, median, risk, and marginal predictions, Cox-Snell (Cox and Snell, 1968), martingale (Barlow and Prentice, 1988), and deviance residuals with a Kolmogorov-Smirnov goodness-of-fit test, influence diagnostics (leverage, Cook's distance, difference in fits (DFFITS), difference in betas (DFBETAS); Belsley, Kuh, and Welsch, 1980), random data generation under all eight censoring mechanisms, a Monte Carlo simulation-study function, and a diagnostic and survival plotting suite.

Authors:Shikhar Tyagi [aut, cre], Arvind Pandey [aut], Bhupendra Singh [aut], Vrijesh Tripathi [aut]

MultiFrailty_0.1.0.tar.gz
MultiFrailty_0.1.0.zip(r-4.7-any)MultiFrailty_0.1.0.zip(r-4.6-any)MultiFrailty_0.1.0.zip(r-4.5-any)
MultiFrailty_0.1.0.tgz(r-4.6-any)MultiFrailty_0.1.0.tgz(r-4.5-any)
MultiFrailty_0.1.0.tar.gz(r-4.7-any)MultiFrailty_0.1.0.tar.gz(r-4.6-any)
MultiFrailty_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
MultiFrailty/json (API)

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

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.00 score 185 downloads 34 exports 10 dependencies

Last updated from:2186e48d87. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK148
source / vignettesOK229
linux-releaseOK141
macos-releaseOK100
macos-oldrelOK90
windows-develOK81
windows-releaseOK85
windows-oldrelOK94
wasm-releaseOK105

Exports:baseline_hazardbootstrap_waiccompare_modelscv_frailtydiagnostics_tablefit_frailtyforecast_frailtyfrailty_functionsfrailty_laplaceinfluence_frailtyloglik_frailtymultifrailtyplot_allplot_baselineplot_coef_forestplot_dfbetasplot_frailty_densityplot_leverageplot_qq_residualsplot_residuals_fittedplot_residuals_leverageplot_scale_locationplot_survival_kmpredict_frailtyr_frailtyr_gl1r_gl2r_gwr_igresiduals_frailtyrisk_predictsimulate_mle_performancesimulation_studysurvival_at

Dependencies:digestgenericslatticeMatrixmaxLikmiscToolsnumDerivsandwichsurvivalzoo

Introduction to MultiFrailty: Shared Frailty Regression Models
Overview | Supported Frailty & Baseline Distributions | Basic Usage Example

Last update: 2026-08-07
Started: 2026-08-07

Reproducing Source Papers with MultiFrailty
Overview | Example Fit on Lung Cancer Data

Last update: 2026-08-07
Started: 2026-08-07

Readme and manuals

Help Manual

Help pageTopics
Baseline Hazard and Cumulative Hazard Evaluationbaseline_hazard
Bootstrapped WAIC Computationbootstrap_waic
Model Comparison, Bootstrapped WAIC, and Cross-Validation for MultiFrailty Modelscompare_models
K-Fold Cross Validation for MultiFrailty Modelscv_frailty
Diagnostic Summary Tablediagnostics_table
Low-Level Maximum Likelihood Estimator for MultiFrailty Modelsfit_frailty
Future Survival Forecastforecast_frailty
Unified Survival, Density, Hazard, and Cumulative Hazard Combinerfrailty_functions
Laplace Transform and Derivatives for Frailty Distributionsfrailty_laplace
Influence Diagnostics for MultiFrailty Modelsinfluence_frailty
Log-Likelihood Function for MultiFrailty Modelsloglik_frailty
Formula Interface for Shared Frailty Regression Modelsmultifrailty
Full Diagnostic Plot Suiteplot_all
Baseline Hazard Plotplot_baseline
Coefficient Forest Plotplot_coef_forest
DFBETAS Plotplot_dfbetas
Frailty Density Overlay Plot across Familiesplot_frailty_density
Leverage Index Plotplot_leverage
Q-Q Plot of Cox-Snell Residuals vs Exp(1)plot_qq_residuals
Residuals vs Fitted Plotplot_residuals_fitted
Residuals vs Leverage Plotplot_residuals_leverage
Scale-Location Plotplot_scale_location
Diagnostic and Visualization Suite for MultiFrailty Modelsplot_survival_km
Predictions for MultiFrailty Regression Modelspredict_frailty
S3 Methods for MultiFrailty Fit ObjectsAIC.multifrailty_fit BIC.multifrailty_fit coef.multifrailty_fit confint.multifrailty_fit logLik.multifrailty_fit print.multifrailty_fit print.summary.multifrailty_fit summary.multifrailty_fit vcov.multifrailty_fit
Random Data Generation under Eight Censoring Schemesr_frailty
Random Generation for Generalized Lindley Type 1 (GL1) Frailty Distributionr_gl1
Random Generation for Generalized Lindley Type 2 (GL2) Frailty Distributionr_gl2
Random Generation for Generalized Weibull (GW) Baseline Distributionr_gw
Random Generation for Inverse Gaussian (IG) Frailty Distributionr_ig
Residual Diagnostics and Goodness-of-Fit Tests for MultiFrailty Modelsresiduals_frailty
Risk Score Predictionsrisk_predict
Monte Carlo Simulation Framework for MultiFrailty Modelssimulate_mle_performance
Run Comprehensive Simulation Studysimulation_study
Survival Probability at Specific Time Pointssurvival_at