Pwr.lme: Performs power calculations

Pwr.lmeR Documentation

Performs power calculations

Description

This is method for Pwr() generic function. It is a modified version from the one described by Galecki and Burzykowski implemented in nlmeU package (nlmeU::Pwr.lme).

Usage

## S3 method for class 'lme'
Pwr(
  object,
  ...,
  type = c("sequential", "marginal"),
  Terms,
  L,
  verbose = FALSE,
  sigma,
  ddf = numeric(0),
  alpha = 0.05,
  altB = NULL,
  tol = 1e-10
)

Arguments

object

an object containing lme fit, which provides information needed for power calculations

...

some additional arguments may be required.

type

an optional character string specifying the type of sum of squares to be used in F-tests needed for power calculations. Syntax is the same as for anova.lme() in nlme package.

Terms

an optional integer or character vector specifying which terms in the model should be jointly tested to be zero using a Wald F-test. See anova.lme in nlme package for details.

L

an optional numeric vector or array specifying linear combinations of the coefficients in the model that should be tested to be zero. See anova.lme in nlme package for details.

verbose

an optional logical value. See anova.lme in nlme package for details.

sigma

numeric scalar value.

ddf

numeric scalar value. Argument can be used to redefine default number of denominator degrees of freedom

alpha

numeric scalar value. By default 0.05.

altB

matrix/vector containing alternative values for beta parameters

tol

numeric scalar value.

Value

a data frame inheriting from class Pwr.lme

References

  • Andrzej Galecki & Tomasz Burzykowski (2013) Linear Mixed-Effects Models Using R: A Step-by-Step Approach First Edition. Springer, New York. ISBN 978-1-4614-3899-1

See Also

nlme::anova.lme, nlmeU::Pwr.lme


SynergyLMM documentation built on April 4, 2025, 4:13 a.m.