pwr.contrast {pwr4exp} | R Documentation |
Calculate power for testing various contrasts. The same syntax of emmeans package is employed to specify contrast types.
pwr.contrast(design, specs, method, alpha = 0.05, ...)
design |
a design object created using design generating functions. |
specs |
an argument inherited from emmeans specifying the names of the factors over which the contrasts are performed. |
method |
an argument inherited from contrast specifying the method of contrasts, e.g., pairwise, linear, and polynomials. |
alpha |
significance level (type I error rate), default 0.05 |
... |
other arguments passed to contrast. |
a data frame showing the power of the specific contrast
rcbd = designRCBD(treatments = c(2, 2), blocks = 10, beta = c(10, 9, 8, 7), VarCov = 10, sigma2 = 9)
pwr.contrast(rcbd, specs = ~ facA|facB, method = "pairwise")