cronbach_alpha function

Compute Cronbach alpha with confidence interval

Compute Cronbach alpha with confidence interval

So far internal function.

cronbach_alpha(Data, ci = TRUE, ci_lvl = 0.95)

Arguments

  • Data: data.frame or matrix, item data, NA gets excluded automatically.
  • ci: logical, whether to compute CI or not. Defaults to TRUE.
  • ci_lvl: numeric ranging from 0 to 1, a confidence level to construct CI for. Defaults to .95.

Returns

A list with α\alpha estimate and optionally CI.

Examples

ShinyItemAnalysis:::cronbach_alpha(HCI[, 1:20])