compare | R Documentation |
Returns means, standard deviations, and sample sizes for two groups; inferential statistics (t-test and p-value), and effect size with confidence intervals (Cohen's D). Inputs other than the dataset are strings so that the function can be used with expand_grid variables and map.
compare(df, group, y)
df |
Dataset with variables in question |
group |
string Comparison groups |
y |
string Outcome to compare |
tibble object (1 row) with relevant information
mtcars |> compare("am", "wt")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.