Test function to verify that k_inter properly modulates the difference between HR(H) and HR(Hc), and that AHR metrics align with Cox-based HRs.
Usage
validate_k_inter_effect(
k_inter_values = c(-2, -1, 0, 1, 2, 3),
verbose = TRUE,
...
)Arguments
- k_inter_values
Numeric vector of k_inter values to test. Default: c(-2, -1, 0, 1, 2, 3)
- verbose
Logical. Print results. Default: TRUE
- ...
Additional arguments passed to the internal GBSG builder that
setup_gbsg_dgmalso calls:k_treat,k_z3,z1_quantile,n_super,cens_type,use_rand_paramsandseed, with the meanings given there.
Note
This function builds its mechanisms through the superseded GBSG
wrapper (see setup_gbsg_dgm). That wrapper's censoring step,
in which the covariate term of the censoring model is multiplied by the
ratio of the event-model scale to the censoring-model scale, does not
affect the hazard ratios this function reports.