ggstatsplot icon indicating copy to clipboard operation
ggstatsplot copied to clipboard

Can an interface be provided so that users can export R statistical formulas?

Open perlatex opened this issue 3 years ago • 0 comments

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

perlatex avatar May 29 '22 05:05 perlatex