README.md

QRegIT

QRegIT is an R package for quantile (Q) regression (Reg) on inactivity (I) time (T). The inactivity time can be interpreted as time lost due to an event of interest, reversed lifetime, or time beyond an adverse event such as transition to an addictive drug. We propose a quantile regression model to associate the inactivity time with potential predictors, adjusting for confounding factors. This function can also handle competing risks data.

Please refer to our paper for more details: https://onlinelibrary.wiley.com/doi/10.1002/sim.8871

## Installation

Install QRegIT from Github

install.packages("devtools")
library(devtools)
install_github("yicjia/QRegIT")

Usage

QRegIT(time, event, cov, t0, tau, type = 1, nPerturb = 400)

Arguments

Values

QRegIT returns a data frame containing the estimated coefficients and 95% CI.

Example:

# First load QRegIT R package
library(QRegIT)

# Load the example data testdata
data("testdata")

# Test run of QRegIT
cov <- testdata[,c("x1","x2","x3")]
testRun <- QRegIT(testdata$time, testdata$event, cov, t0 = 15, tau = 0.5, type = 1, nPerturb = 1000)

## Reference ### If you use QRegIT in your research, please consider citing: Jia, Y., & Jeong, J. H. (2021). Cause‐specific quantile regression on inactivity time. Statistics in Medicine, 40(7), 1811-1824.

@article{jia2021cause,
  title={Cause-specific quantile regression on inactivity time},
  author={Jia, Yichen and Jeong, Jong-Hyeon},
  journal={Statistics in Medicine},
  volume={40},
  number={7},
  pages={1811--1824},
  year={2021},
  publisher={Wiley Online Library}
}


yicjia/QRegIT documentation built on Aug. 6, 2021, 3:56 a.m.