survival_comparison_functions: Survival Comparison Functions

survival_comparison_functionsR Documentation

Survival Comparison Functions

Description

These are simple wrappers around robin_surv_comparison() called with the corresponding log-rank score functions.

Usage

robin_surv_no_strata_no_cov(vars, data, exp_level, control_level)

robin_surv_strata(vars, data, exp_level, control_level)

robin_surv_cov(vars, data, exp_level, control_level, ...)

robin_surv_strata_cov(vars, data, exp_level, control_level, ...)

Arguments

vars

(list) A list containing levels, treatment, and covariates.

data

(data.frame) The data frame containing the survival data.

exp_level

(count) Level of the experimental treatment arm.

control_level

(count) Level of the control treatment arm.

...

Additional arguments passed to score_fun.

Value

See robin_surv_comparison().

Functions

  • robin_surv_no_strata_no_cov(): without strata and without covariates, based on h_lr_score_no_strata_no_cov().

  • robin_surv_strata(): without strata and without covariates, based on h_lr_score_strat().

  • robin_surv_cov(): without strata and without covariates, based on h_lr_score_cov() and h_lr_score_no_strata_no_cov() (which is used to find the unadjusted log hazard ratio estimate).

  • robin_surv_strata_cov(): with strata and covariates, based on h_lr_score_strat_cov() and h_lr_score_strat() (which is used to find the unadjusted log hazard ratio estimate).


RobinCar2 documentation built on Sept. 9, 2025, 5:28 p.m.