powered by
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, ... )
Data frame with k_inter, hr_H, hr_Hc, AHR_H, AHR_Hc, and ratio columns
Numeric vector of k_inter values to test. Default: c(-2, -1, 0, 1, 2, 3)
Logical. Print results. Default: TRUE
Additional arguments passed to create_gbsg_dgm
# \donttest{ # Test k_inter effect results <- validate_k_inter_effect() # k_inter = 0 should give hr_H approximately equals hr_Hc (ratio approximately 1) # }
Run the code above in your browser using DataLab