[R] Correlations Table of Items when compute Cronbach's Alpha

Steven Stoline sstoline at gmail.com
Tue Feb 21 16:43:00 CET 2017


Dear All:


I am using *alpha(data, **check.keys=TRUE)  or  alpha(data, keys = c(1, 1,
1, -1))*  to compute the Cronbach's Alpha. I am using  *check.keys=TRUE*
or *keys = c(1, 1, 1, -1) *to automatically reverse items.


*My question is: *how can I get the correlation tables (matrix) of the
reversed items as part of the R output.



*Here is an example of the data set:*


 X1 X2 X3 X4
  2  5   4   4
  1  1   1   6
  1  2   1   6
  2  3   2   4
  1  2   1   6
  1  3   1   6
  2  2   2   5
  2  1   1   6
  2  2   4   5
  5  5   2   1
  1  3   1   6
  1  1   1   6
  1  1   1   6
  2  2   2   5
  2  2   2   2
  1  6   1   6
  1  2   1   6
  2  2   3   5
  2  5   4   5
  2  1   2   6
  2  2   1   5
  2  2   2   6
  1  1   1   6
  1  1   1   6
  1  1   1   5
  1  2   2   5
  2  2   2   5
  1  2   2   5
  1  4   2   5
  2  2   2   2
  2  2   4   5
  2  1   2   5
  2  2   2   5
  2  2   2   5
  2  2   2   5
  2  2   2   5
  5  2   2   5
  2  2   1   5
  2  5   6   2
  2  4   2   5
  2  2   2   4
  2  3   5   1
  3  3   3   6
  2  2   2   4
  2  2   2   5
  2  2   2   5
  1  1   1   6
  1  1   1   5
  6  1   1   6
  1  1   1   6
  2  6   4   3
  1  1   1   6
  1  1   1   6
  4  5   5   5
  5  2   2   5
  2  2   2   5
  1  2   1   6
  1  5   1   6
  1  4   2   5
  2  1   1   5
  4  2   1   5
  2  2   2   5
  1  1   1   6
  6  1   1   4
  1  2   1   6
  1  1   1   5
  1  1   1   6
  1  4   1   3
  1  1   1   6
  5  2   2   5
  2  2   2   5
  1  1   1   6
  1  1   1   5
  4  4   2   4
  3  2   2   5
  1  2   1   6
  1  2   1   6
  2  1   1   5
  2  6   1   6
  4  3   1   5
  1  1   1   5
  1  1   1   6
  4  5   4   5
  1  1   1   2
  1  1   1   6
  1  1   1   6
  4  4   3   4
  2  2   2   4
  1  2   2   4
  1  1   1   6
  2  3   2   5
  2  6  NA   5
  2  2   2   5
  1  2   3   4
  2  1   2   5
  1  2   2   6
  1  1   2   6
  1  2   2   5
  2  2   2   5
  1  5   5   2
  1  2   1   5
  1  5   2   4
  2  4   1   6
  6  1   1   2
  2  2   2   5
  1  1   1   6
  1  1   1   2
  2  2   2   4
  1  1   1   6
  4  2   2   5
  2  3   1   5
  2  1   2   5
  2  2   1   5
  1  2   2   5
  1  2   1   5
  6  2   2   4
  2  2   5   2
  2  5   3   5
  1  4   4   4
  1  1   1   6


thank you
steve

------------------------
Steven M. Stoline
sstoline at gmail.com

	[[alternative HTML version deleted]]



More information about the R-help mailing list