Description Usage Arguments Details Value Author(s)
computes power parameters for t-test associated with a custom contrast
1 2 3 |
cont |
contrast codes as a numeric vector |
d |
effect size d |
n |
number of observations per cell |
power |
power of test (1 minus Type II error probability) |
scale |
used to scale the d index. It can be "g", "z" or a numeric value |
sig.level |
significance level (Type I error probability) |
type |
string specifying the type of t test. Can be abbreviated. |
alternative |
one- or two-sided test. Can be abbreviated |
Exactly one of the parameters 'd','n','power' and 'sig.level' must be passed as NULL, and that parameter is determined from the others.
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
Object of class '"power.htest"', a list of the arguments (including the computed one) augmented with 'method' and 'note' elements.
Marcello Gallucci, mcfanda@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.