multisite.bin | R Documentation |
Performs power and sample size calculations for a multisite trial with a binary outcome. Can solve for power, J, m or alpha.
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
)
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. |
In a multisite trial design, participants are randomized to conditions within site. Consider using ms.varexplore to select plausible values for sigma.u.
A list of the arguments (including the computed one).
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.