ggstatsplot
ggstatsplot copied to clipboard
Can an interface be provided so that users can export R statistical formulas?
Can an interface be provided so that users can export R statistical formulas? Similar to brms::stancode(mod) function.
library(tidyverse)
library(ggstatsplot)
penguins <- palmerpenguins::penguins %>%
drop_na()
output<- penguins %>%
ggbetweenstats(
x = sex,
y = bill_length_mm
)
Suppose we have such a function extract_stats_formulas()
output %>% extract_stats_formulas()
We hope to get such a result, which will be very helpful for beginners
## t.test(bill_length_mm ~ sex, data = penguins, var.equal = FALSE)
thank you @IndrajeetPatil