skpr (version 1.7.1)

effectpower: Calculate Effect Power

Description

Calculates the effect power given the anticipated coefficients and the type-I error

Usage

effectpower(
  RunMatrix,
  levelvector,
  anticoef,
  alpha,
  vinv = NULL,
  degrees = NULL
)

Value

The effect power for the parameters

Arguments

RunMatrix

The model matrix

levelvector

The number of levels in each parameter (1st is always the intercept)

anticoef

The anticipated coefficients

alpha

the specified type-I error

vinv

The V inverse matrix

degrees

Degrees of freedom