Tries to make the data ready for use in the asymmetrise_stats() function using broom::tidy()

prepare_data(df)

Arguments

df

input data of either a tibble, data.frame, or results from a statistical test

Value

a tibble data table

Warning

If you repeatedly get errors, try preparing the data before-hand using broom::tidy(df)

Examples

a <- rnorm(10, mean = 1, sd = 1) b <- rnorm(10, mean = 1.5, sd = 1) prepare_data(t.test(a, b))
#> # A tibble: 1 x 10 #> estimate estimate1 estimate2 statistic p.value parameter conf.low conf.high #> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 -0.684 1.09 1.77 -1.54 0.142 17.2 -1.62 0.253 #> # … with 2 more variables: method <chr>, alternative <chr>