View source: R/power_calculation.R
pwr.summary | R Documentation |
Computes the statistical power for testing (t-test) model coefficients.
pwr.summary(object, sig.level = 0.05)
object |
design object |
sig.level |
significance level, default 0.05 |
a data frame containing model coefficients, degrees of freedom (df
),
type I error rate (sig.level
), power, and the test direction (alternative
).
rcbd <- designRCBD(
treatments = c(2, 2),
label = list(facA = c("1", "2"), facB = c("1", "2")),
blocks = 12,
formula = ~ facA*facB + (1|block),
means = c(32, 35, 30, 37),
vcomp = 4,
sigma2 = 6
)
pwr.summary(rcbd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.