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

Mark Sharp msharp at txbiomed.org
Tue Feb 21 18:13:58 CET 2017

```Have you looked at the help page?
?alpha::alpha

See the section labeled Value.

Look at
output <- alpha(data, keys = c(1, 1, 1, -1))
output\$r
output\$r.cor
output\$r.drop

R. Mark Sharp, Ph.D.
msharp at TxBiomed.org

> On Feb 21, 2017, at 9:43 AM, Steven Stoline <sstoline at gmail.com> wrote:
>
> 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]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help