Description Usage Arguments Value
View source: R/tsriadditivefit.R
fit an additive hazard using two stage residual inclusion method
1 2 | tsriadditivefit(survtime, cause, comp = FALSE, treatment = NULL,
IV = NULL, covariates = NULL)
|
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. |
comp |
the indicator of whether modeling subdistribution hazard |
treatment |
the treatment variable, can be null |
IV |
the instrumental variable |
covariates |
all the observed confounders |
the fitting result, a list containing the cofficients, the baseline function, the variance covariance
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.