calculate.icc: Calculates intracluster correlation coefficient for...

Description Usage Arguments Value

Description

Calculates intracluster correlation coefficient for observations

Usage

1
2
3
4
5
calculate.icc(
  data.dt,
  mode = c("binary", "continuous", "auto")[3],
  return.type = c("value", "variables")[1]
)

Arguments

data.dt

data.table with minimally columns for cluster and outcome.

mode

Type of variable for which ICC will be calculated. Can be automatically detected on the basis of number of levels. (Default: auto)

return.type

Can return either the single value rho, or a list of all values calculated (Default: 'value')

Value

Numeric ICC


mattmoo/SteppedWedgeAnalysis documentation built on Jan. 14, 2020, 12:25 a.m.