mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random Effect

We present mexhaz, an R package for fitting flexible hazard-based regression models with the possibility to add time-dependent effects of covariates and to account for a twolevel hierarchical structure in the data through the inclusion of a normally distributed random intercept (i.e., a log-normally...

Full description

Bibliographic Details
Main Authors: Hadrien Charvat, Aurélien Belot
Format: Article
Language:English
Published: Foundation for Open Access Statistics 2021-07-01
Series:Journal of Statistical Software
Subjects:
Online Access:https://www.jstatsoft.org/index.php/jss/article/view/3342
_version_ 1797813969254088704
author Hadrien Charvat
Aurélien Belot
author_facet Hadrien Charvat
Aurélien Belot
author_sort Hadrien Charvat
collection DOAJ
description We present mexhaz, an R package for fitting flexible hazard-based regression models with the possibility to add time-dependent effects of covariates and to account for a twolevel hierarchical structure in the data through the inclusion of a normally distributed random intercept (i.e., a log-normally distributed shared frailty). Moreover, mexhazbased models can be fitted within the excess hazard setting by allowing the specification of an expected hazard in the model. These models are of common use in the context of the analysis of population-based cancer registry data. Follow-up time can be entered in the right-censored or counting process input style, the latter allowing models with delayed entries. The logarithm of the baseline hazard can be flexibly modeled with B-splines or restricted cubic splines of time. Parameters estimation is based on likelihood maximization: in deriving the contribution of each observation to the cluster-specific conditional likelihood, Gauss-Legendre quadrature is used to calculate the cumulative hazard; the cluster-specific marginal likelihoods are then obtained by integrating over the random effects distribution, using adaptive Gauss-Hermite quadrature. Functions to compute and plot the predicted (excess) hazard and (net) survival (possibly with cluster-specific predictions in the case of random effect models) are provided. We illustrate the use of the different options of the mexhaz package and compare the results obtained with those of other available R packages.
first_indexed 2024-03-13T08:00:35Z
format Article
id doaj.art-dd3ef9c51a244926ac73370bed875c34
institution Directory Open Access Journal
issn 1548-7660
language English
last_indexed 2024-03-13T08:00:35Z
publishDate 2021-07-01
publisher Foundation for Open Access Statistics
record_format Article
series Journal of Statistical Software
spelling doaj.art-dd3ef9c51a244926ac73370bed875c342023-06-01T18:41:06ZengFoundation for Open Access StatisticsJournal of Statistical Software1548-76602021-07-0198110.18637/jss.v098.i143216mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random EffectHadrien CharvatAurélien BelotWe present mexhaz, an R package for fitting flexible hazard-based regression models with the possibility to add time-dependent effects of covariates and to account for a twolevel hierarchical structure in the data through the inclusion of a normally distributed random intercept (i.e., a log-normally distributed shared frailty). Moreover, mexhazbased models can be fitted within the excess hazard setting by allowing the specification of an expected hazard in the model. These models are of common use in the context of the analysis of population-based cancer registry data. Follow-up time can be entered in the right-censored or counting process input style, the latter allowing models with delayed entries. The logarithm of the baseline hazard can be flexibly modeled with B-splines or restricted cubic splines of time. Parameters estimation is based on likelihood maximization: in deriving the contribution of each observation to the cluster-specific conditional likelihood, Gauss-Legendre quadrature is used to calculate the cumulative hazard; the cluster-specific marginal likelihoods are then obtained by integrating over the random effects distribution, using adaptive Gauss-Hermite quadrature. Functions to compute and plot the predicted (excess) hazard and (net) survival (possibly with cluster-specific predictions in the case of random effect models) are provided. We illustrate the use of the different options of the mexhaz package and compare the results obtained with those of other available R packages.https://www.jstatsoft.org/index.php/jss/article/view/3342adaptive Gauss-Hermite quadratureexcess hazardflexible modelsfrailty modelstime-dependent effectsC
spellingShingle Hadrien Charvat
Aurélien Belot
mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random Effect
Journal of Statistical Software
adaptive Gauss-Hermite quadrature
excess hazard
flexible models
frailty models
time-dependent effects
C
title mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random Effect
title_full mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random Effect
title_fullStr mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random Effect
title_full_unstemmed mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random Effect
title_short mexhaz: An R Package for Fitting Flexible Hazard-Based Regression Models for Overall and Excess Mortality with a Random Effect
title_sort mexhaz an r package for fitting flexible hazard based regression models for overall and excess mortality with a random effect
topic adaptive Gauss-Hermite quadrature
excess hazard
flexible models
frailty models
time-dependent effects
C
url https://www.jstatsoft.org/index.php/jss/article/view/3342
work_keys_str_mv AT hadriencharvat mexhazanrpackageforfittingflexiblehazardbasedregressionmodelsforoverallandexcessmortalitywitharandomeffect
AT aurelienbelot mexhazanrpackageforfittingflexiblehazardbasedregressionmodelsforoverallandexcessmortalitywitharandomeffect