| robin_surv_comparison | R Documentation |
This function combines the estimation of the log hazard ratio and the log-rank test
using a score function. Only two treatment arms are being compared and the data is subset accordingly.
robin_surv_comparison(
score_fun,
vars,
data,
exp_level,
control_level,
unadj_score_fun = NULL,
...
)
score_fun |
( |
vars |
( |
data |
( |
exp_level |
( |
control_level |
( |
unadj_score_fun |
( |
... |
Additional arguments passed to |
If an unadjusted score function is provided in unadj_score_fun, then it is used to estimate the
log hazard ratio first. This unadjusted log hazard ratio estimate is then passed on to the adjusted
score function score_fun as theta_hat. This is required when the score function is adjusted for covariates.
A list containing:
estimate: The estimated log hazard ratio.
se: The standard error of the estimated log hazard ratio.
hr_n: The number of observations used in the estimation.
hr_sigma_l2: The variance of the log-rank statistic used in the estimation.
test_stat: The log-rank test statistic.
p_value: The two-sided p-value of the log-rank test.
test_score: The log-rank score statistic.
test_n: The number of observations used in the log-rank test.
test_sigma_l2: The variance of the log-rank statistic used in the log-rank test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.