File Exchange

image thumbnail

Cronbach's Alpha

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

5 Downloads

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 (2020). Cronbach's Alpha (https://www.mathworks.com/matlabcentral/fileexchange/38320-cronbach-s-alpha), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

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

Kirsten

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.

Ben

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