multisite.hte | R Documentation |
Calculates power for a test of heterogeneity of the treatment effect in a multisite trial with a continuous outcome variable. In particular, let sigma.u1^2 be the variance of the site-level treatment effects. The test of heterogeneity tests the null hypothesis that sigma.u1^2 = 0 versus the alternative that sigma.u1^2 > 0. Can solve for power, J, or m.
multisite.hte(
m = NULL,
alloc.ratio = 1,
J = NULL,
VR = NULL,
alpha = 0.05,
power = NULL,
v = FALSE
)
m |
The mean number of subjects per site. |
alloc.ratio |
The allocation ratio of intervention/control subjects per site; defaults to 1. |
J |
The total number of sites. |
VR |
The variance ratio (variance of the site-level treatment effects divided by variance of observations within sites) under the alternative. |
alpha |
The significance level (type 1 error rate); defaults to 0.05. |
power |
The specified level of power. |
v |
Either TRUE for verbose output or FALSE (default) to output computed argument only. |
See Crespi CM (2025) for details.
A list of the arguments (including the computed power).
multisite.hte(m = 10, J = 30, VR = 8 / 36)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.