data(holzinger)
spatial<-holzinger[, c('visual', 'cubes', 'paper', 'lozenge', 'paperrev','flagssub')]
verbal<-holzinger[, c('general', 'paragrap', 'sentence', 'wordc', 'wordm')]
speed<-holzinger[, c('add', 'code', 'counting', 'straight')]
memory<-holzinger[, c('wordr', 'numberr', 'figurer', 'object', 'numberf', 'figurew')]
alpha.spatial<-cronbach(spatial)
## diagnostic plot
plot(alpha.spatial, type='d')
## alpha with varphi=.01 & standard error
alpha.spatial<-cronbach(spatial, varphi=.01, se=TRUE)
## confidence interval
summary(alpha.spatial)
## weight plot
plot(alpha.spatial)
# or
plot(alpha.spatial, type='w')
## profile plot
plot(alpha.spatial, type='p')
alpha.verbal<-cronbach(verbal, varphi=.02, se=TRUE)
## confidence interval
summary(alpha.verbal)
## weight plot
plot(alpha.verbal)
## profile plot
plot(alpha.verbal, type='p', profile=6)
alpha.speed<-cronbach(speed, varphi=.01, se=TRUE)
## confidence interval
summary(alpha.speed)
## weight plot
plot(alpha.speed)
## profile plot
plot(alpha.speed, type='p', pos='topleft')
alpha.memory<-cronbach(memory, varphi=.04, se=TRUE)
## confidence interval
summary(alpha.memory)
## weight plot
plot(alpha.memory)
## profile plot
plot(alpha.memory, type='p', profile=10, pos='bottomright')
plot(alpha.memory, type='p', profile=10, scale=TRUE, pos='bottomright')Run the code above in your browser using DataLab