# The following example is derived from the "dept_data" dataset included
# in the MOTE package.
# Suppose seven people completed a measure of belief in the supernatural
# before and after watching a sci-fi movie.
# Higher scores indicate stronger belief.
t.test(dept_data$before, dept_data$after, paired = TRUE)
# You can type in the numbers directly, or refer to the
# dataset, as shown below.
d_dep_t_avg(m1 = 5.57, m2 = 4.43, sd1 = 1.99,
sd2 = 2.88, n = 7, a = .05)
d_dep_t_avg(5.57, 4.43, 1.99, 2.88, 7, .05)
d_dep_t_avg(mean(dept_data$before), mean(dept_data$after),
sd(dept_data$before), sd(dept_data$after),
length(dept_data$before), .05)
Run the code above in your browser using DataLab