| ttestPS {jmv} | R Documentation |
Paired Samples T-Test
ttestPS(data, pairs, students = TRUE, bf = FALSE, bfPrior = 0.707, wilcoxon = FALSE, hypothesis = "different", norm = FALSE, qq = FALSE, meanDiff = FALSE, effectSize = FALSE, ci = FALSE, ciWidth = 95, desc = FALSE, plots = FALSE, miss = "perAnalysis")
data |
the data as a data frame |
pairs |
a list of lists specifying the pairs of measurement in
|
students |
|
bf |
|
bfPrior |
a number between 0.5 and 2 (default 0.707), the prior width to use in calculating Bayes factors |
wilcoxon |
|
hypothesis |
|
norm |
|
qq |
|
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$norm | a table containing the normality test results | ||||
results$desc | a table containing the descriptives | ||||
results$plots | an array of the descriptive plots | ||||
Tables can be converted to data frames with asDF or as.data.frame. For example:
results$ttest$asDF
as.data.frame(results$ttest)
## Not run:
data('bugs', package = 'jmv')
ttestPS(bugs, pairs = list(
list(i1 = 'LDLF', i2 = 'LDHF')))
#
# PAIRED SAMPLES T-TEST
#
# Paired Samples T-Test
# --------------------------------------------------------------
# statistic df p
# --------------------------------------------------------------
# LDLF LDHF Student's t -6.65 90.0 < .001
# --------------------------------------------------------------
#
## End(Not run)