Suppose I have data from a questionnaire. The questionnaire contained eight items, of which the first four comprise one scale, the second four another scale. My data now looks like this:
dat: | scale.1 | scale.2 participant | item.1 item.2 item.3 item.4 | item.5 item.6 item.7 item.8 1 | 3 7 1 2 | 2 3 6 4 2 | 2 2 5 2 | 8 9 7 6 ...
How do I calculate Cronbach’s alpha for this questionnaire as a whole and each individual scale?
When I calculate alpha for scale.1, do I calculate it as if the items comprising scale.2 did not exist ? Like this:
library(psy) cronbach(data.frame(dat$item.1, dat$item.2, dat$item.3, dat$item.4))
Or is there some (better? correct?) way where I input the whole dataframe into a function, tell it which columns belong to which scale, and I get internal consistencies that considers the scales in the context of the whole questionnaire?
scoreItems from the psych package seems to do something like this, but I'm too stupid to make sense of the manual.