etaSquaredTtest | R Documentation |
Calculate or bootstrap a confidence interval.
etaSquaredTtest(g1, g2 = NA, mu = 0, na.rm = TRUE)
g1 |
A numeric vector (scores for group 1). |
g2 |
A numeric vector (scores for group 2). |
mu |
A number for a single-sample t-test (default: 0). |
na.rm |
Boolean: remove NA's from g1 and g2 (default: TRUE). |
Eta-squared is a measure of effect size that expresses the propportion of variance explained by an effect. For a t-test, that 'effect' is the separation of the data into two groups. There is a way to do this for two groups, as well as for a single sample, comparing the mean to a given number. There is no way (now) to do this for a two-sample t-test comparing the difference in means to a hypothetical value, nor does this function differentiate between single-sided or two-sided t-tests.
A number: the eta squared (effect size).
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.