R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- array(list(1 + ,1 + ,2 + ,2 + ,1 + ,3 + ,2 + ,1 + ,1 + ,1 + ,3 + ,1 + ,4 + ,2 + ,1 + ,1 + ,2 + ,2 + ,3 + ,3 + ,2 + ,2 + ,1 + ,2 + ,1 + ,2 + ,3 + ,1 + ,2 + ,2 + ,3 + ,3 + ,3 + ,1 + ,3 + ,1 + ,1 + ,2 + ,2 + ,2 + ,4 + ,2 + ,3 + ,4 + ,4 + ,1 + ,3 + ,2 + ,3 + ,1 + ,1 + ,2 + ,1 + ,2 + ,3 + ,1 + ,1 + ,1 + ,1 + ,2 + ,2 + ,4 + ,1 + ,1 + ,2 + ,1 + ,2 + ,2 + ,3 + ,2 + ,1 + ,1 + ,1 + ,1 + ,1 + ,4 + ,3 + ,1 + ,1 + ,1 + ,1 + ,1 + ,4 + ,1 + ,1 + ,2 + ,3 + ,2 + ,3 + ,3 + ,1 + ,1 + ,1 + ,2 + ,2 + ,3 + ,3 + ,2 + ,1 + ,1 + ,1 + ,2 + ,2 + ,4 + ,1 + ,2 + ,1 + ,2 + ,1 + ,3 + ,3 + ,2 + ,2 + ,1 + ,2 + ,2 + ,1 + ,3 + ,3 + ,1 + ,1 + ,1 + ,2 + ,1 + ,4 + ,3 + ,1 + ,1 + ,1 + ,2 + ,2 + ,4 + ,1 + ,1 + ,2 + ,1 + ,1 + ,1 + ,3 + ,4 + ,2 + ,2 + ,2 + ,1 + ,2 + ,3 + ,2 + ,1 + ,1 + ,2 + ,2 + ,2 + ,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 + ,2 + ,1 + ,1 + ,1 + ,4 + ,1 + ,4 + ,4 + ,1 + ,1 + ,1 + ,1 + ,3 + ,3 + ,2 + ,1 + ,1 + ,2 + ,2 + ,2 + ,3 + ,1 + ,2 + ,1 + ,1 + ,2 + ,2 + ,4 + ,1 + ,1 + ,1 + ,2 + ,1 + ,3 + ,4 + ,2 + ,1 + ,1 + ,1 + ,1 + ,3 + ,3 + ,3 + ,2 + ,1 + ,1 + ,2 + ,1 + ,4 + ,2 + ,2 + ,2 + ,2 + ,4 + ,3 + ,4 + ,4 + ,1 + ,1 + ,2 + ,1 + ,2 + ,4 + ,3 + ,2 + ,2 + ,3 + ,1 + ,1 + ,2 + ,4 + ,1 + ,1 + ,1 + ,1 + ,1 + ,4 + ,2 + ,1 + ,1 + ,1 + ,2 + ,2 + ,4 + ,3 + ,2 + ,3 + ,3 + ,2 + ,2 + ,1 + ,2 + ,4 + ,1 + ,3 + ,1 + ,3 + ,2 + ,2 + ,2 + ,1 + ,2 + ,1 + ,3 + ,3 + ,3 + ,2 + ,1 + ,1 + ,2 + ,1 + ,3 + ,4 + ,1 + ,1 + ,1 + ,2 + ,2 + ,4 + ,2 + ,1 + ,1 + ,1 + ,1 + ,2 + ,4 + ,1 + ,2 + ,2 + ,2 + ,3 + ,3 + ,3 + ,3 + ,2 + ,1 + ,3 + ,3 + ,4 + ,4 + ,1) + ,dim=c(7 + ,159) + ,dimnames=list(c('x1' + ,'x2' + ,'x3' + ,'x4' + ,'x5' + ,'x6' + ,'x7') + ,1:159)) > y <- array(NA,dim=c(7,159),dimnames=list(c('x1','x2','x3','x4','x5','x6','x7'),1:159)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., 2012, Cronbach alpha (v1.0.2) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_cronbach.wasp/ > #Source of accompanying publication: > # > library(psych) > z <- t(y) > (r <- alpha(z)) Reliability analysis Call: alpha(x = z) raw_alpha std.alpha G6(smc) average_r mean sd 0.69 0.72 0.73 0.27 2 0.36 Reliability if an item is dropped: raw_alpha std.alpha G6(smc) average_r x1 0.63 0.67 0.67 0.25 x2 0.62 0.64 0.65 0.23 x3 0.60 0.64 0.63 0.23 x4 0.69 0.73 0.73 0.31 x5 0.68 0.72 0.72 0.30 x6- 0.65 0.68 0.69 0.26 x7 0.72 0.74 0.74 0.32 Item statistics n r r.cor r.drop mean sd x1 159 0.69 0.63 0.51 1.5 0.69 x2 159 0.76 0.74 0.61 1.3 0.57 x3 159 0.77 0.77 0.62 1.7 0.70 x4 159 0.49 0.33 0.28 1.9 0.80 x5 159 0.51 0.37 0.31 2.0 0.83 x6- 159 0.64 0.56 0.44 3.4 0.71 x7 159 0.43 0.26 0.21 2.1 0.96 Non missing response frequency for each item 1 2 3 4 miss x1 0.61 0.30 0.08 0.01 0 x2 0.77 0.19 0.03 0.01 0 x3 0.44 0.45 0.09 0.01 0 x4 0.38 0.40 0.20 0.02 0 x5 0.30 0.45 0.21 0.04 0 x6 0.01 0.09 0.40 0.50 0 x7 0.34 0.35 0.23 0.09 0 Warning message: In alpha(z) : Some items were negatively correlated with total scale and were automatically reversed > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Cronbach Alpha and Related Statistics',5,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Items',1,TRUE) > a<-table.element(a,'Cronbach Alpha',1,TRUE) > a<-table.element(a,'Std. Alpha',1,TRUE) > a<-table.element(a,'G6(smc)',1,TRUE) > a<-table.element(a,'Average R',1,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'All itmes',header=TRUE) > a<-table.element(a,round(r$total['raw_alpha'],4)) > a<-table.element(a,round(r$total['std.alpha'],4)) > a<-table.element(a,round(r$total['G6(smc)'],4)) > a<-table.element(a,round(r$total['average_r'],4)) > a<-table.row.end(a) > n = length(z[1,]) > for (i in 1:n) { + a<-table.row.start(a) + a<-table.element(a,paste(colnames(z)[i],' excluded',sep=''),header=TRUE) + a<-table.element(a,round(r$alpha.drop[i,'raw_alpha'],4)) + a<-table.element(a,round(r$alpha.drop[i,'std.alpha'],4)) + a<-table.element(a,round(r$alpha.drop[i,'G6(smc)'],4)) + a<-table.element(a,round(r$alpha.drop[i,'average_r'],4)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/fisher/rcomp/tmp/1xtzo1355756093.tab") > > > > proc.time() user system elapsed 0.716 0.101 0.794