| validate_k_inter_effect | R Documentation |
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.
validate_k_inter_effect(
k_inter_values = c(-2, -1, 0, 1, 2, 3),
verbose = TRUE,
...
)
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
|
Data frame with k_inter, hr_H, hr_Hc, AHR_H, AHR_Hc, and ratio columns
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.
## Not run:
# Test k_inter effect
results <- validate_k_inter_effect()
# k_inter = 0 should give hr_H approximately equals hr_Hc (ratio approximately 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.