irgtt.bin: Power for individual randomized group treatment trial with...

irgtt.binR Documentation

Power for individual randomized group treatment trial with binary outcome

Description

Computes power and sample size for an individually randomized group treatment trial with a binary outcome, in which after individual randomization, individuals in the intervention/treatment arm are clustered. Can solve for power, J, m, n, or alpha.

Usage

irgtt.bin(
  m = NULL,
  J = NULL,
  n = NULL,
  p1 = NULL,
  p2 = NULL,
  icc = 0,
  alpha = 0.05,
  power = NULL,
  sides = 2,
  v = FALSE
)

Arguments

m

The number of subjects per cluster in the intervention arm.

J

The total number of clusters in the intervention arm.

n

The total number of participants in the control arm.

p1

The probability of the outcome in the control arm.

p2

The probability of the outcome in the intervention arm.

icc

The intraclass correlation coefficient in the intervention arm; defaults to 0.

alpha

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

power

The specified level of power.

sides

Either 1 or 2 (default) to specify a one- or two-sided hypothesis test.

v

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

Value

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

Examples

irgtt.bin(m = 20, J = 5, n = 100, p1 = 0.8, p2 = 0.6, icc = 0.04, sides = 2)
irgtt.bin(m = 20, J = 6, n = 120, p1 = 0.8, p2 = 0.6, icc = 0.04, sides = 2)

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