Get the coefficient prefix based on beneficiary demographics.
Examples
x = demographics(age = 70, sex = "F", dual = "00", orec = 0, crec = 0)
prefix(x, "C28")
#> [1] "CNA_"
prefix(x, "D24")
#> [1] NA
prefix(x, "R05")
#> [1] "Rx_CE_NoLowAged_"
Get the coefficient prefix based on beneficiary demographics.
x = demographics(age = 70, sex = "F", dual = "00", orec = 0, crec = 0)
prefix(x, "C28")
#> [1] "CNA_"
prefix(x, "D24")
#> [1] NA
prefix(x, "R05")
#> [1] "Rx_CE_NoLowAged_"