Description Usage Arguments Details Value Examples
Selects the correct statistical test for a provided dataframe column.
1 | choose_test(df, group, col)
|
df |
a data frame |
group |
a grouping variable to split the records in |
col |
a column to be tested |
currently does not work with factors, only logicals and numerics.
a list of class htest
representing the results of either chisq.test
or t.test
1 | mtcars %>% dplyr::group_by(hp > 150) %>% choose_test(`hp > 150`, mpg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.