Returns a summary table of subgroup estimates (HR, RMST, medians, etc.).
SG_tab_estimates(
df,
SG_flag,
outcome.name = "tte",
event.name = "event",
treat.name = "treat",
strata.name = NULL,
hr_1a = NA,
hr_0a = NA,
potentialOutcome.name = NULL,
sg1_name = NULL,
sg0_name = NULL,
draws = 0,
details = FALSE,
return_medians = TRUE,
est.scale = "hr"
)Data frame of subgroup summary estimates.
Data frame.
Character. Subgroup flag variable.
Character. Name of outcome variable.
Character. Name of event indicator variable.
Character. Name of treatment variable.
Character. Name of strata variable (optional).
Character. Adjusted HR for subgroup 1 (optional).
Character. Adjusted HR for subgroup 0 (optional).
Character. Name of potential outcome variable (optional).
Character. Name for subgroup 1.
Character. Name for subgroup 0.
Integer. Number of draws for resampling (optional).
Logical. Print details.
Logical. Use medians or RMST.
Character. Effect scale ("hr" or "1/hr").