ContICC {swdpwr} | R Documentation |
A function for calculating ICCs for continuous outcomes given random effects variances
Description
This function calculates the within-period, between-period, and within-individual correlation parameters for continuous outcomes in a stepped wedge CRT
Usage
ContICC(
type = "cross-sectional",
sigma2 = 1,
sigma_b = 0,
sigma_c = 0,
sigma_pi = NA
)
Arguments
type |
choose the study type, specify type="cohort" for closed cohort study and type="cross-sectional" for cross-sectional study, default is "cross-sectional" |
sigma2 |
marginal variance of the outcom, default is 1 |
sigma_b |
variance of the between-cluster random effect, default is 0 |
sigma_c |
variance of the cluster-by-time interaction random effect, default is 0 |
sigma_pi |
variance of the random effect for repeated measures of one individual, this parameter should not be specified for cross-sectional studies, default is NA |
Value
The object returned includes the study type and values for the ICCs in this study
Examples
ContICC(type="cohort",sigma2=1.5,sigma_b=0.5,sigma_c=0.2,sigma_pi=0.3)
[Package swdpwr version 1.9 Index]