Division of Biostatistics, School of Public Health, University of Minnesota, Minneapolis, USA.
Department of Biostatistics and Epidemiology, School of Public Health and Health Science, University of Massachusetts Amherst, Amherst, USA.
BMC Med Res Methodol. 2022 Apr 3;22(1):92. doi: 10.1186/s12874-022-01558-0.
Bivariate alternating recurrent event data can arise in longitudinal studies where patients with chronic diseases go through two states that occur repeatedly, e.g., care periods and break periods. However, there was no statistical software that provided tools for the analysis of such data. To meet this software need, we developed BivRec, a package for R that contains a set of tools for exploratory, nonparametric and semiparametric regression analysis of bivariate alternating recurrent events.
The BivRec package provides functions for nonparametric estimations for the joint distribution of bivariate gap times (bivrecNP) and semiparametric regression methods for evaluating covariate effects on the two types of gap times under the accelerated failure time model framework (bivrecReg). The package also provides exploratory data analysis tools such as a visualization of the gap times by groups. We utilize a subset of the South Verona Psychiatric Case Register (PCR) data to illustrate the use of the BivRec package for the reviewed methods.
We demonstrate BivRec's capability for data visualization, nonparametric and regression based analysis, as well as data simulation. The package has default methods with satisfactory performance despite the complexity of calculations and fills a gap in software for statistical analysis of bivariate alternating recurrent events. BivRec is accessible under the GPL-3 General Public License through CRAN, facilitating its installation.
双变量交替复发事件数据可能出现在慢性病患者经历两种反复发生的状态的纵向研究中,例如护理期和休息期。然而,没有提供用于分析此类数据的统计软件。为了满足这一软件需求,我们开发了 BivRec,这是一个用于 R 的软件包,其中包含一组用于探索性、非参数和半参数双变量交替复发事件回归分析的工具。
BivRec 软件包提供了用于双变量间隔时间联合分布的非参数估计的功能(bivrecNP)和用于在加速失效时间模型框架下评估协变量对两种间隔时间影响的半参数回归方法(bivrecReg)。该软件包还提供了探索性数据分析工具,例如按组可视化间隔时间。我们利用南维罗纳精神病案例登记处(PCR)数据的一个子集来说明 BivRec 软件包用于审查方法的使用。
我们展示了 BivRec 用于数据可视化、基于非参数和回归的分析以及数据模拟的能力。尽管计算复杂,但该软件包具有默认方法和令人满意的性能,填补了用于双变量交替复发事件统计分析的软件空白。BivRec 可通过 CRAN 以 GPL-3 通用公共许可证获得,便于安装。