get_M: Calculate the total number of clusters.

Description Usage Arguments Value

View source: R/power_analysis_functions.R

Description

Calculate the total number of clusters.

Usage

1
2
get_M(alpha = 0.05, power = 0.8, ICC = 0.001, delta = 0.2, n = 100,
  type = "standard", cv = NULL, tol = .Machine$double.eps^0.25)

Arguments

alpha

The level of significance.

power

The power.

ICC

The intra class correlation.

delta

The effect size.

n

The mean cluster size.

type

The type of design effect, either standard or based on the coefficient of variation.

cv

The coefficient of variation, if type is cv.

tol

A tolerance value.

Value

M The total number of clusters.


jm3594/crtpower documentation built on July 2, 2017, 12:05 p.m.