Description Usage Arguments Details Value Author(s) Examples
Compute Cohen's d for contrasts with different scaling functions
1 2 |
cont |
contrast codes as a numeric vector |
means |
pattern of means as numeric vector of the same length of |
sd |
pooled standard deviation |
y |
dependent variable |
x |
independent variable with k-groups, with k being length(cont) |
scale |
scaling method of the d index |
data to compute the d index can be either actual data or a vector of means and a standard deviation
actual data are specified with the y
and x
parameters, means and standard deviation
with the means
, and sd
parameters. The parameter means
and sd
are prevalent, thus
if means
,y
and x
are provided, but not sd
, y and x are used to computed the pooled standard deviation.
If means
and sd
are provided, y
and x
are ignored.
The parameter scale
controls the method used to scale the effect size d.
scale="g"
assumes scaling by dividing 2*d by the sum of absolute coefficients
scale="z"
assumes scaling by dividing d by the square-root of the sum of squares of the contrast weigths
numeric
any constant that multiplies the unscaled d to obtain the scaled d
t-test for the contrast.
Marcello Gallucci, mcfanda@gmail.com
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.