Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

CronbachAlpha

Calculate Cronbach's alpha coefficient.


Description

Calculate Cronbach's alpha coefficient from a matrix or data.frame with more than 2 columns.

Usage

CronbachAlpha(X)

Arguments

X

A matrix or data.frame with more than 2 columns.

Value

Single numeric value of Cronbach's alpha.

Author(s)

References

Bland JM, Altman DG (1997) Statistics notes: Cronbach's alpha. BMJ, 314: 572.

Examples

QUEST <- data.frame(
  Q1=c(1, 5, 2, 3, 4, 2, 3, 4, 3, 2), 
  Q2=c(2, 4, 1, 2, 4, 1, 2, 5, 2, 1), 
  Q3=c(2, 5, 1, 3, 3, 2, 2, 4, 2, 2))
 CronbachAlpha(QUEST)

fmsb

Functions for Medical Statistics Book with some Demographic Data

v0.7.1
GPL (>= 2)
Authors
Minato Nakazawa <minato-nakazawa@umin.net>
Initial release
2021-05-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.