| d_dep_t_rm | R Documentation |
Compute Cohen's d_{rm} and a noncentral-t confidence interval for
repeated-measures (paired-samples) designs **controlling for the correlation
between occasions**. The denominator uses the SDs and their correlation.
d_dep_t_rm(m1, m2, sd1, sd2, r, n, a = 0.05)
m1 |
Mean from the first level/occasion. |
m2 |
Mean from the second level/occasion. |
sd1 |
Standard deviation from the first level/occasion. |
sd2 |
Standard deviation from the second level/occasion. |
r |
Correlation between the two levels/occasions. |
n |
Sample size (number of paired observations). |
a |
Significance level (alpha) for the confidence interval. Must be in (0, 1). |
The effect size is defined as:
d_{rm} = \frac{m_1 - m_2}{\sqrt{s_1^2 + s_2^2 - 2 r s_1 s_2}} \;
\sqrt{2(1-r)}.
The test statistic used for the noncentral-t confidence interval is:
t = \frac{m_1 - m_2}{\sqrt{\dfrac{s_1^2 + s_2^2 - 2 r s_1 s_2}{n}}} \;
\sqrt{2(1-r)}.
See the online example for additional context: Learn more on our example page.
A list with the following elements:
Cohen's d_{rm}.
Lower limit of the (1-\alpha) confidence interval
for d_{rm}.
Upper limit of the (1-\alpha) confidence interval
for d_{rm}.
Group means.
Confidence interval bounds for each mean.
Standard deviations.
Standard errors of the means.
Correlation between occasions.
Sample size.
Degrees of freedom (n - 1).
APA-style formatted string for reporting
d_{rm} and its CI.
# Example derived from the "dept_data" dataset included in MOTE
t.test(dept_data$before, dept_data$after, paired = TRUE)
scifi_cor <- cor(dept_data$before, dept_data$after, method = "pearson",
use = "pairwise.complete.obs")
# Direct entry of summary statistics, or refer to the dataset as shown below.
d_dep_t_rm(m1 = 5.57, m2 = 4.43, sd1 = 1.99,
sd2 = 2.88, r = .68, n = 7, a = .05)
d_dep_t_rm(5.57, 4.43, 1.99, 2.88, .68, 7, .05)
d_dep_t_rm(mean(dept_data$before), mean(dept_data$after),
sd(dept_data$before), sd(dept_data$after),
scifi_cor, length(dept_data$before), .05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.