One Sample T-Test

Example usage

 ttestOneS(data, vars=c('x', 'y', 'z'))


data — the data as a data frame

vars — a vector of strings naming the variables of interest in data

studentsTRUE (default) or FALSE, perform Student's t-tests

bfTRUE or FALSE (default), provide Bayes factors

bfPrior — a number between 0.5 and 2 (default 0.707), the prior width to use in calculating Bayes factors

mannTRUE or FALSE (default), perform Mann-Whitney U test

testValue — a number specifying the value of the null hypothesis

hypothesis'dt' (default), 'gt' or 'lt', the alternative hypothesis; different to testValue, greater than testValue, and less than testValue respectively

normTRUE or FALSE (default), perform Shapiro-wilk tests of normality

meanDiffTRUE or FALSE (default), provide means and standard deviations

effectSizeTRUE or FALSE (default), provide effect sizes

ciTRUE or FALSE (default), provide confidence intervals

ciWidth — a number between 50 and 99.9 (default: 95), the width of confidence intervals

descTRUE or FALSE (default), provide descriptive statistics

plotsTRUE or FALSE (default), provide descriptive plots

miss'perAnalysis' or 'listwise', how to handle missing values; 'perAnalysis' excludes missing values for individual dependent variables, 'listwise' excludes a row from all analyses if one of its entries is missing.