get_Cox_sg: Fit Cox Model for Subgroup
Description
Fits a Cox model for a subgroup and returns estimate and standard error.
Usage
get_Cox_sg(df_sg, cox.formula, est.loghr = TRUE, cox_initial = log(1))
Value
List with estimate and standard error.
Arguments
- df_sg
Data frame for subgroup.
- cox.formula
Cox model formula.
- est.loghr
Logical. Is estimate on log(HR) scale?
- cox_initial
Optional pre-fitted Cox model object to use instead of
fitting a new model. Default NULL
Details
Function is utilized throughout codebase