adjustment | R Documentation |
An adjustment for Cox hazard ratio and an estimation for difference in proportions.
adjustment(
HR_cox,
HR_cox_CI,
s1mix.chosen,
s0mix.chosen,
pi1.est,
pi0.est,
m = NULL,
cure.show = TRUE
)
HR_cox |
Input. Hazard ratio obtained from Cox PH model. |
HR_cox_CI |
Input. Confidence interval of the hazard ratio obtained from Cox PH model. |
s1mix.chosen |
Input. Survival probabilities of Arm 1 estimated by KM at the chosen time. |
s0mix.chosen |
Input. Survival probabilities of Arm 0 estimated by KM at the chosen time. |
pi1.est |
Input. Proportion of short-term survivors (uncured proportion) in Arm 1. |
pi0.est |
Input. Proportion of long-term survivors (uncured proportion) in Arm 0. |
m |
Input (Optional). The polynomial order used in Taylor approximation. m is selected automatically if m = NULL (default). |
cure.show |
Input (Optional). Indicate whether or not to show the estimated proportions of long-term survivors The default is TRUE. |
Adj.before.after |
Results before and after Cox-TEL adjustment: Cox HR, Cox-TEL HR, and Cox-TEL DP. |
Proportion.LTS |
Estimated proportions of long-term survivors with confidence intervals. |
C.Y. Hsu, E.P.Y. Lin and Y Shyr. (2021). Development and Evaluation of a Method to Correct Misinterpretation of Clinical Trial Results With Long-term Survival. JAMA Oncol. doi:10.1001/jamaoncol.2021.0289.
library(CoxTEL)
s1mix.chosen <- c(0.48,0.39,0.35,0.35)
s0mix.chosen <- c(0.36,0.28,0.26,0.25)
pi1.est <- 0.65; pi0.est <- 0.75 # Proportion of short-term survivors
HR_cox <- 0.71; HR_cox_CI <- c(0.51, 0.91)
adjustment(HR_cox, HR_cox_CI, s1mix.chosen, s0mix.chosen, pi1.est, pi0.est)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.