Description Usage Arguments Details Value Author(s) Examples
Perform a t-test for custom contrast
1 |
cont |
contrast codes as a numeric vector with length=k |
d |
effect size index to test |
n |
group size required if d is provided (n per cell) |
scale |
scaling method used to compute d. Required if d is provided |
y |
numeric vector of the dependent variable |
x |
numeric vector of the independent variable with k-groups, with k being length(cont). It must be coercible to a factor |
The test can be performed either on raw data on a d coefficient. When d
is provided, also the total sample size n
and the scaling method scale
should be provided.
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. The Estimate
is the contrast value estimate from the data and the Std. Error
is expressed in the same
scale of the estimate. It is assumed that the cells have the same size.
Marcello Gallucci, mcfanda@gmail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.