tsriadditive {tsriadditive} | R Documentation |
Fitting Additive Hazards Models with Two Stage Residual Inclusion Method
Description
tsriadditive is used to fit additive hazards models with two stage residual inclusion method.
Usage
tsriadditive(survtime, cause = NULL, treatment = NULL, IV = NULL,
covariates = NULL)
Arguments
survtime |
the event time |
cause |
the indicator records the cause. Default to all one. Zero means right censoring. Greater than or equal to two means other cause. |
treatment |
the treatment variable, can be null |
IV |
the instrumental variable |
covariates |
all the observed confounders |
Value
tsriadditive returns an object of class "tsriadditive". An object of class "tsriadditive" is a list containing the following components:
coef |
an estimate of the coefficients |
baseline |
an estimate of the baseline hazards function |
vcov |
an estimate of the variance covariance matrix of coef |
byprod |
a byproduct, that will used by other functions |
References
Ying, A., Xu, R. and Murphy, J. Two-Stage Residual Inclusion for Survival Data and Competing Risks - An Instrumental Variable Approach with Application to SEER- Medicare Linked Data. Statistics in Medicine, 38(10): 1775-1801, 2019.
Examples
survtime <- rexp(100)
cause <- rbinom(100, 1, 0.7)
treatment <- rbinom(100, 1, 0.5)
IV <- rnorm(100)
covariates <- rnorm(100)
fit <- tsriadditive(survtime, cause, treatment, IV, covariates)