| ttestIS {jmv} | R Documentation |
Independent Samples T-Test
ttestIS(data, vars, group, students = TRUE, bf = FALSE, bfPrior = 0.707, welchs = FALSE, mann = FALSE, hypothesis = "different", norm = FALSE, qq = FALSE, eqv = FALSE, meanDiff = FALSE, effectSize = FALSE, ci = FALSE, ciWidth = 95, desc = FALSE, plots = FALSE, miss = "perAnalysis")
data |
the data as a data frame |
vars |
a vector of strings naming the dependent variables |
group |
a string naming the grouping variable, must have 2 levels |
students |
|
bf |
|
bfPrior |
a number between 0.5 and 2 (default 0.707), the prior width to use in calculating Bayes factors |
welchs |
|
mann |
|
hypothesis |
|
norm |
|
qq |
|
eqv |
|
meanDiff |
|
effectSize |
|
ci |
|
ciWidth |
a number between 50 and 99.9 (default: 95), the width of confidence intervals |
desc |
|
plots |
|
miss |
|
A results object containing:
results$ttest | a table containing the t-test results | ||||
results$assum$norm | a table containing the normality tests | ||||
results$assum$eqv | a table containing the equality of variances tests | ||||
results$desc | a table containing the group descriptives | ||||
results$plots | an array of groups of plots | ||||
Tables can be converted to data frames with asDF or as.data.frame. For example:
results$ttest$asDF
as.data.frame(results$ttest)
data('ToothGrowth')
ttestIS(data = ToothGrowth, vars = 'len', group = 'supp')
#
# INDEPENDENT SAMPLES T-TEST
#
# Independent Samples T-Test
# ----------------------------------------------------
# statistic df p
# ----------------------------------------------------
# len Student's t 1.92 58.0 0.060
# ----------------------------------------------------
#