pwr4exp1.0.1 package

Power Analysis for Research Experiments

df.spd

Create data frame for split-plot design

expandDoubleVerts

Expand terms with '||' notation into separate '|' terms

factorize

Convert variables to factors as necessary

findbars

Determine random-effects expressions from a formula

mkdesign

Create a Design Object for Power Calculation

mkReTrms

Design Matrices and Variance Components for Random Effects

mkRTrms

Residual Variance-Covariance Matrices

mkStruct

Building Design Matrices and Covariance Structures for Linear Mixed Mo...

nobars

Omit terms separated by vertical bars in a formula

pwr.anova

Power of omnibus tests

contrast1D

Computes power of t-test for one-dimensional contrast matrices

contrastMD

Computes power of F-test for multi-dimensional contrast matrices

corAR1

AR(1) Correlation Structure

corARMA

ARMA(p,q) Correlation Structure

corCAR1

Continuous AR(1) Correlation Structure

corClasses

Correlation Structure Classes

corCompSymm

Compound Symmetry Correlation Structure

corExp

Exponential Correlation Structure

corGaus

Gaussian Correlation Structure

corLin

Linear Correlation Structure

corRatio

Rational Quadratics Correlation Structure

corSpher

Spherical Correlation Structure

corSymm

General Correlation Structure

create_designs

Creation of Standard Experimental Designs

df.cod

Create a data frame for Crossover design

df.crd

Create a data frame of completely randomized design

df.lsd

Create a data frame for Latin square design

df.rcbd

Create a data frame of randomized complete block design

pwr.contrast

Power of contrasts

pwr.summary

Power for model coefficients

subbars

Substitute Bars

Provides tools for calculating statistical power for experiments analyzed using linear mixed models. It supports standard designs, including randomized block, split-plot, and Latin Square designs, while offering flexibility to accommodate a variety of other complex study designs.

  • Maintainer: Kai Wang
  • License: GPL (>= 2)
  • Last published: 2025-11-11