Description Usage Arguments Value
Calculates the p-value of a cluster randomized trial by simulation.
Calculates the p-value under the null hypotheses of a cluster randomized trial by simulation.
1 2 3 4 5 | crtPowerSim(M = 6, n = 100, vare = 0.95, varb = 0.05, B0 = 0,
B1 = 0.2)
crtPowerSim(M = 6, n = 100, vare = 0.95, varb = 0.05, B0 = 0,
B1 = 0.2)
|
M |
The total number of clusters. Must be even. |
n |
The mean cluster size. |
vare |
The variance of the measurement error. |
varb |
The variance of the random effects. |
B0 |
The overall intercept. |
B1 |
The standardized treatment effect. |
a |
The minimum of the uniform distribution used to generate cluster sizes. |
M |
The total number of clusters. Must be even. |
n |
The mean cluster size, or a vector of cluster sizes. |
vare |
The variance of the measurement error. |
varb |
The variance of the random effects. |
B0 |
The overall intercept. |
B1 |
The treatment effect. |
The p-value under the null hypothesis.
The p-value under the null hypothesis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.