crtPowerSim: Simple cluster randomized trial p-values

Description Usage Arguments Value

Description

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.

Usage

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)

Arguments

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.

Value

The p-value under the null hypothesis.

The p-value under the null hypothesis.


jm3594/crtpower documentation built on May 19, 2019, 12:48 p.m.