cluster_bias_adjustment: Cluster Bias Correction

View source: R/cluster_bias_adjustment.R

cluster_bias_adjustmentR Documentation

Cluster Bias Correction

Description

Function to conduct cluster bias correction of sampling variance estimates obtained from cluster-randomized studies in which the reported variance does not account for clustering.

Usage

cluster_bias_adjustment(sigma2js, cluster_size = 22, icc = 0.2)

Arguments

sigma2js

A vector of sampling variance estimates that do not account for clustering.

cluster_size

A numerical value for average cluster size.

icc

Assumed intra-class correlation (proportion of total variance at the cluster level).

Value

Returns a vector of cluster bias adjusted variance estimates

Examples

cbc_var <- cluster_bias_adjustment(
  sigma2js = c(0.04, 0.06, 0.08, 0.1),
  cluster_size = 15,
  icc = 0.15
)

cbc_var



MikkelVembye/POMADE documentation built on June 15, 2024, 7:15 p.m.