| d_single_t_t | R Documentation |
Compute Cohen's d and a noncentral-t confidence interval for a
one-sample (single) t-test using the observed t-statistic.
d_single_t_t(t, n, a = 0.05)
d.single.t.t(t, n, a = 0.05)
t |
t-test value. |
n |
Sample size. |
a |
Significance level (alpha) for the confidence interval. Must be in (0, 1). |
The effect size is calculated as:
d = \frac{t}{\sqrt{n}},
where t is the one-sample t-statistic and n is the sample size.
The corresponding (1 - \alpha) confidence interval for d is
derived from the noncentral t distribution.
See the online example for additional context: Learn more on our example page.
A list with the following elements:
Cohen's d.
Lower limit of the (1-\alpha) confidence
interval for d.
Upper limit of the (1-\alpha) confidence
interval for d.
Sample size.
Degrees of freedom (n - 1).
t-statistic.
p-value.
APA-style formatted string for reporting
d and its CI.
APA-style formatted string for reporting the t-statistic and p-value.
# A school has a gifted/honors program that they claim is
# significantly better than others in the country. The gifted/honors
# students in this school scored an average of 1370 on the SAT,
# with a standard deviation of 112.7, while the national average
# for gifted programs is a SAT score of 1080.
gift <- t.test(singt_data$SATscore, mu = 1080, alternative = "two.sided")
# Direct entry of t-statistic and sample size:
d_single_t_t(9.968, 15, .05)
# Equivalent shorthand:
d_single_t_t(9.968, 15, .05)
# Using values from a t-test object and dataset:
d_single_t_t(gift$statistic, length(singt_data$SATscore), .05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.