I'm trying to use subscripts with gt to annotate a table. I tried a few different things and none of them work. Here is the code that I wrote:
tibble(' ' = c("Frequentist", "Bayesian"),
`Test against null` = c(html("61%<sub>a</sub>"), "84%_b"),
`Test against MME` = c("57%_{a,c}", "42%_c")) %>%
gt() %>%
tab_source_note(
md(
"**Note:** Proportions with different subscripts have at least a 95% probability of differing by at least 10 percentage points."
)
)
Is it possible to do what I want? If so, what am I missing?
Thanks!