I was wondering if there were a way to run a complete Cronbach's Alpha analysis (like that available in 'Reliability Analysis' in SPSS), including an Alpha value if item is deleted.
I've created a Cronbach function from Mathworks File Exchange, giving me:
% Calculate the number of items
k=size(X,2);
% Calculate the variance of the items' sum
VarTotal=nanvar(nansum(X'));
% Calculate the item variance
SumVarX=nansum(nanvar(X));
% Calculate the Cronbach's alpha
a=k/(k-1)*(VarTotal-SumVarX)/VarTotal;
In a 1000x60
matrix, I'd like to know the Alpha when each item across dimension 2 is deleted.
Is there an in-built function for something like this? Is it possible to update this code (or write new code) to that effect?