multisite.bin: Power for a multisite trial with a binary outcome

multisite.binR Documentation

Power for a multisite trial with a binary outcome

Description

Performs power and sample size calculations for a multisite trial with a binary outcome. Can solve for power, J, m or alpha.

Usage

multisite.bin(
  m = NULL,
  alloc.ratio = 1,
  J = NULL,
  pc = NULL,
  pt = NULL,
  sigma.u = NULL,
  alpha = 0.05,
  power = NULL,
  sides = 2,
  v = FALSE
)

Arguments

m

The total number of subjects in condition 1 + condition 2.

alloc.ratio

The allocation ratio of condition 1/condition 2 within site; defaults to 1.

J

The total number of sites.

pc

The probability of the outcome in the control condition.

pt

The probability of the outcome in the treatment condition.

sigma.u

Standard deviation of the treatment effect across sites.

alpha

The significance level or 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.

Details

In a multisite trial design, participants are randomized to conditions within site. Consider using ms.varexplore to select plausible values for sigma.u.

Value

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

Examples

multisite.bin(m = 30, J = 25, pc = 0.1, pt = 0.2, sigma.u = 0.4, power = NULL)
multisite.bin(m = 30, J = NULL, pc = 0.1, pt = 0.2, sigma.u = 0.4, power = 0.9)

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