# Example 1: Anti-K and Anti-E
# K negative freq ~91%, E negative freq ~71%
# Need 2 units: 2 / (0.91 * 0.71) = 3.1 -> 4 units
rbc_compatibility_screen(2, c("k_big", "e_big"))
# Example 2: Multiple Antibodies (Anti-c, Anti-Fya)
# c negative ~20%, Fya negative ~34%
# Need 2 units: 2 / (0.20 * 0.34) = 29.4 -> 30 units
rbc_compatibility_screen(2, c("c_little", "fya"))
Run the code above in your browser using DataLab