compare: Compare

View source: R/compare.R

compareR Documentation

Compare

Description

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.

Usage

compare(df, group, y)

Arguments

df

Dataset with variables in question

group

string Comparison groups

y

string Outcome to compare

Value

tibble object (1 row) with relevant information

Examples

mtcars |> compare("am", "wt")

lirabenjamin/Ben documentation built on Aug. 6, 2024, 7:11 p.m.