Estimate Counterfactual Survival Functions Using Weibull Censoring Scores
surv_weibull(
data,
time_var,
event_var,
treatment_var,
eval_times = NULL,
weight_result,
censoring_formula,
censoring_control = list(maxiter = 350)
)List containing:
Matrix [time x J] of survival function estimates S^(j)(t).
Time points evaluated.
Treatment level values.
Number of treatment levels.
List of weight vectors by treatment group.
List of censoring score vectors by group.
Weighting method and target estimand.
Normalization constant.
Input objects.
List with W (PS model) and X (censoring model).
Binary indicator matrix [n x J] for treatment groups.
Original time and event vectors.
Data frame.
Name of time variable.
Name of event indicator (1 = event, 0 = censored).
Name of treatment variable.
Numeric vector of time points. If NULL, uses all unique event times.
Output from estimate_weights().
Formula for censoring score model.
Control parameters for survreg().
Default list(maxiter = 350).
Estimates counterfactual survival function for each treatment group j: $$S^{(j)}_w(t) = 1 - \frac{\sum_i w_i I(A_i=j) \delta_i I(T_i \leq t) / K_c^{(j)}(T_i, X_i)}{\sum_i w_i I(A_i=j)}$$