Learn R Programming

pwr4exp (version 1.0.1)

pwr.summary: Power for model coefficients

Description

Computes the statistical power for testing (t-test) model coefficients.

Usage

pwr.summary(object, sig.level = 0.05)

Value

a data frame containing model coefficients, degrees of freedom (df), type I error rate (sig.level), power, and the test direction (alternative).

Arguments

object

design object

sig.level

significance level, default 0.05

Examples

Run this code
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)

Run the code above in your browser using DataLab