irgtt.bin: 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
)
Value
A list of the arguments (including the computed one).
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.