Function to obtain the average hazard ratio.
Arguments
- x_subg
(
matrix
)
the matrix with the subgroup covariates.- dummy_subg
(
matrix
)
the dummy matrix with the subgroup covariates.- est_coef
(
matrix
)
the estimated coefficients from the fitted model.- h0
(
numeric
)
the vector with the cumulative baseline hazard.- 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).