crt.means.r: Correlation between a cluster mean at baseline and follow up

crt.means.rR Documentation

Correlation between a cluster mean at baseline and follow up

Description

For a cluster randomized trial with a continuous outcome, this function calculates the correlation between a cluster's mean at baseline and at follow up based on various inputs. For cross-sectional sampling of subjects, that is, different subjects are measured at baseline and follow up, specify sac = 0.

Usage

crt.means.r(m, icc, cac, sac)

Arguments

m

The number of measurements in each cluster at baseline and follow up.

icc

The intraclass correlation coefficient.

cac

The cluster autocorrelation.

sac

The subject autocorrelation.

Value

The computed correlation.

Examples

crt.means.r(m = 30, icc = 0.05, cac = 0.4, sac = 0.5)

powertools documentation built on April 4, 2025, 5:02 a.m.