| Literature DB >> 35369863 |
Sandra Castro-Pearson1, Aparajita Sur1, Chi Hyun Lee2, Chiung-Yu Huang3, Xianghua Luo4,5.
Abstract
BACKGROUND: 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.Entities:
Keywords: BivRec; Bivariate gap times; Recurrent events
Mesh:
Year: 2022 PMID: 35369863 PMCID: PMC8978432 DOI: 10.1186/s12874-022-01558-0
Source DB: PubMed Journal: BMC Med Res Methodol ISSN: 1471-2288 Impact factor: 4.612
Fig. 1Illustration of a bivariate alternating recurrent event process
Arguments and compatible standard functions for function bivrecSurv()
| Argument | Description |
|---|---|
| id | Vector of subject’s unique identifier. |
| episode | Vector indicating the pair or episode number (j) for a subject (i); this will determine order of events for each subject. |
| xij | Vector with the lengths of time spent in event of Type I for individual i in episode j. |
| yij | Vector with the lengths of time spent in event of Type II for individual i in episode j. |
| d1 | Vector of censoring indicator corresponding to Type I gap times (xij); d1 = 1 for uncensored, and = 0 for censored gap times. |
| d2 | Vector of censoring indicator corresponding to Type II gap times (yij); d2 = 1 for uncensored, and = 0 for censored gap times. Note that in the last episode, yij is always censored (i.e., d2 = 0). |
| Compatible functions: | plot() |
Fig. 2Care and break periods in the South-Verona Psychiatric Case Register (PCR) data sorted by the overall follow-up time of each individual
Fig. 3Care and break periods in the PCR data stratified by education (1 = secondary education or higher; 0 = less than secondary education)
Arguments and compatible standard functions for function bivrecNP()
| Argument | Description |
|---|---|
| response | A response object of the bivrecSurv class. |
| level | The confidence level for the point-wise confidence interval; must be between 0.50 and 0.99; the default value is 0.95. |
| ai | Value 1 or 2 to indicate which weight function to use in the nonparametric estimator; 1 indicates that the weights are 1 for all subjects, |
| u1 | A vector (or single number) of time values to be used for the estimation of the joint cdf, Pr( |
| u2 | A vector (or single number) of time values to be used for the estimation of the joint cdf, Pr( |
| conditional | A logical value. If TRUE, this function will calculate the conditional cdf for the Type II gap time given an interval of the Type I gap time and the bootstrap standard error and confidence interval at the specified confidence level; the default is FALSE. |
| given.interval | A vector c(v1, v2) that must be specified if conditional=TRUE. The vector indicates an interval for the Type I gap time to be used for the estimation of the cdf of the Type II gap time given this interval. |
| If given.interval=c(v1, v2), the function calculates Pr( | |
| Compatible functions: | plot(), head(), print() |
Fig. 4Contour plot of the joint cdf of the care and break periods for combinations that meet the condition x+y≤τ, where τ=5697
Fig. 5Plots of the marginal survival probability of the care period and the conditional cdf of the break period given the care period
Arguments and compatible standard functions for function bivrecReg()
| Argument | Description |
|---|---|
| formula | A formula with a bivrecSurv object on the left of a ’ ∼’ operator as response, and the covariate(s) on the right. |
| data | A data frame that includes all the variables listed in the formula. |
| method | A string indicating which method (“Lee.et.al” or “Chang”) to estimate the effects of covariates; the default is “Lee.et.al”. |
| Compatible functions: | summary(), vcov(), coef(), confint(), print() |