Function to obtain the estimated treatment effect in each one of the considered subgroups.
subgroups(object, est_coef, h0 =NULL, gamma =1)
Arguments
object: (bonsaiforest)
the fitted bonsaiforest object.
est_coef: (matrix)
the estimated coefficients from the fitted model.
h0: (numeric)
the vector with the cumulative baseline hazard. Present just for resptype survival.
gamma: (scalar)
numeric value defining the weights to obtain the average hazard ratio. Default is 1 (in this case the average hazard ratio obtained can be interpreted as the odds of concordance).
Returns
data.frame with the subgroup names and with the estimated subgroup treatment effects.