mlrF.partial: Power calculation for a multiple linear regression partial F...

mlrF.partialR Documentation

Power calculation for a multiple linear regression partial F test

Description

Conducts power and sample size calculations for a partial F test in a multiple linear regression model. This is a test that one or more coefficients are equal to zero after controlling for a set of control predictors. Can solve for power, N or alpha.

Usage

mlrF.partial(
  N = NULL,
  p = NULL,
  q = NULL,
  pc = NULL,
  Rsq.red = NULL,
  Rsq.full = NULL,
  alpha = 0.05,
  power = NULL,
  v = FALSE
)

Arguments

N

The sample size.

p

The number of control predictors.

q

The number of test predictors.

pc

The partial correlation coefficient. Either both Rsq terms OR pc must be specified.

Rsq.red

The squared population multiple correlation coefficient for the reduced model. Either both Rsq terms OR pc must be specified.

Rsq.full

The squared population multiple correlation coefficient for the full model. Either both Rsq terms OR pc must be specified.

alpha

The significance level or type 1 error rate; defaults to 0.05.

power

The specified level of power.

v

Either TRUE for verbose output or FALSE to output computed argument only.

Value

A list of the arguments (including the computed one).

Examples

mlrF.partial(N = 80, p = 3, q = 2, Rsq.red = 0.25, Rsq.full = 0.35)
mlrF.partial(N = 150, p = 4, pc = 0.2)

powertools documentation built on April 4, 2025, 5:02 a.m.