One sample t-test
ttest_onesample(data, outcome = NULL, null_mean = NULL, test_greater = NULL, ...)
data | a data frame or tibble |
---|---|
outcome | the outcome variable (quoted) |
null_mean | the fixed mean to test against (numeric) |
test_greater | alternative hypothesis that the mean exceeds 'null_mean' (TRUE), is less than 'null_mean' (FALSE) or two-sided (NULL, the default) |
... | other arguments to be passed to t.test |