File Exchange

image thumbnail

Cronbach's Alpha

version (1.6 KB) by Alex Schlegel
Compute standardized and unstandardized Cronbach's alphas


Updated 24 Sep 2012

View License

Computes standardized and unstandardized Cronbach's alphas for an nR x nI array of nR repetitions of observations of nI items. Cronbach's alpha measures the reliability of psychometric test scores.

A couple other versions of functions for calculating Cronbach's alpha exist on the exchange but are not well documented. Leontitsis' calculates only unstandardized alphas and Nagel's calculates standardized scores but uses Spearman correlation instead of Pearson.

This function calculates both and uses Pearson correlations.

Cite As

Alex Schlegel (2021). Cronbach's Alpha (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Dominik Mattioli

Should include nanmean, corrcoef(..., 'rows', 'complete'), and cov(..., 'omitrows') in order to accomodate inputs with NaN values.

Dominik Mattioli


Alex Schlegel

Hi Ben, I am not sure, but I just used the formula from the Wikipedia article on Cronbach's alpha, which looks like it derives from eq. 44 of the original paper (doi:10.1007/bf02310555). That equation appears to refer to straight means of correlations, rather than using Fisher z-transforms.


Thanks for the function!

Small comment: When calculating the mean of correlations, shouldn't one use Fisher z-transformed values and then transform back? So, tanh(mean(atanh(r))) instead of mean(r)?

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!