R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" 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(26 + ,21 + ,21 + ,20 + ,16 + ,15 + ,19 + ,19 + ,18 + ,19 + ,18 + ,11 + ,20 + ,16 + ,8 + ,25 + ,23 + ,19 + ,25 + ,17 + ,4 + ,22 + ,12 + ,20 + ,26 + ,19 + ,16 + ,22 + ,16 + ,14 + ,17 + ,19 + ,10 + ,22 + ,20 + ,13 + ,19 + ,13 + ,14 + ,24 + ,20 + ,8 + ,26 + ,27 + ,23 + ,21 + ,17 + ,11 + ,13 + ,8 + ,9 + ,26 + ,25 + ,24 + ,20 + ,26 + ,5 + ,22 + ,13 + ,15 + ,14 + ,19 + ,5 + ,21 + ,15 + ,19 + ,7 + ,5 + ,6 + ,23 + ,16 + ,13 + ,17 + ,14 + ,11 + ,25 + ,24 + ,17 + ,25 + ,24 + ,17 + ,19 + ,9 + ,5 + ,20 + ,19 + ,9 + ,23 + ,19 + ,15 + ,22 + ,25 + ,17 + ,22 + ,19 + ,17 + ,21 + ,18 + ,20 + ,15 + ,15 + ,12 + ,20 + ,12 + ,7 + ,22 + ,21 + ,16 + ,18 + ,12 + ,7 + ,20 + ,15 + ,14 + ,28 + ,28 + ,24 + ,22 + ,25 + ,15 + ,18 + ,19 + ,15 + ,23 + ,20 + ,10 + ,20 + ,24 + ,14 + ,25 + ,26 + ,18 + ,26 + ,25 + ,12 + ,15 + ,12 + ,9 + ,17 + ,12 + ,9 + ,23 + ,15 + ,8 + ,21 + ,17 + ,18 + ,13 + ,14 + ,10 + ,18 + ,16 + ,17 + ,19 + ,11 + ,14 + ,22 + ,20 + ,16 + ,16 + ,11 + ,10 + ,24 + ,22 + ,19 + ,18 + ,20 + ,10 + ,20 + ,19 + ,14 + ,24 + ,17 + ,10 + ,14 + ,21 + ,4 + ,22 + ,23 + ,19 + ,24 + ,18 + ,9 + ,18 + ,17 + ,12 + ,21 + ,27 + ,16 + ,23 + ,25 + ,11 + ,17 + ,19 + ,18 + ,22 + ,22 + ,11 + ,24 + ,24 + ,24 + ,21 + ,20 + ,17 + ,22 + ,19 + ,18 + ,16 + ,11 + ,9 + ,21 + ,22 + ,19 + ,23 + ,22 + ,18 + ,22 + ,16 + ,12 + ,24 + ,20 + ,23 + ,24 + ,24 + ,22 + ,16 + ,16 + ,14 + ,16 + ,16 + ,14 + ,21 + ,22 + ,16 + ,26 + ,24 + ,23 + ,15 + ,16 + ,7 + ,25 + ,27 + ,10 + ,18 + ,11 + ,12 + ,23 + ,21 + ,12 + ,20 + ,20 + ,12 + ,17 + ,20 + ,17 + ,25 + ,27 + ,21 + ,24 + ,20 + ,16 + ,17 + ,12 + ,11 + ,19 + ,8 + ,14 + ,20 + ,21 + ,13 + ,15 + ,18 + ,9 + ,27 + ,24 + ,19 + ,22 + ,16 + ,13 + ,23 + ,18 + ,19 + ,16 + ,20 + ,13 + ,19 + ,20 + ,13 + ,25 + ,19 + ,13 + ,19 + ,17 + ,14 + ,19 + ,16 + ,12 + ,26 + ,26 + ,22 + ,21 + ,15 + ,11 + ,20 + ,22 + ,5 + ,24 + ,17 + ,18 + ,22 + ,23 + ,19 + ,20 + ,21 + ,14 + ,18 + ,19 + ,15 + ,18 + ,14 + ,12 + ,24 + ,17 + ,19 + ,24 + ,12 + ,15 + ,22 + ,24 + ,17 + ,23 + ,18 + ,8 + ,22 + ,20 + ,10 + ,20 + ,16 + ,12 + ,18 + ,20 + ,12 + ,25 + ,22 + ,20 + ,18 + ,12 + ,12 + ,16 + ,16 + ,12 + ,20 + ,17 + ,14 + ,19 + ,22 + ,6 + ,15 + ,12 + ,10 + ,19 + ,14 + ,18 + ,19 + ,23 + ,18 + ,16 + ,15 + ,7 + ,17 + ,17 + ,18 + ,28 + ,28 + ,9 + ,23 + ,20 + ,17 + ,25 + ,23 + ,22 + ,20 + ,13 + ,11 + ,17 + ,18 + ,15 + ,23 + ,23 + ,17 + ,16 + ,19 + ,15 + ,23 + ,23 + ,22 + ,11 + ,12 + ,9 + ,18 + ,16 + ,13 + ,24 + ,23 + ,20 + ,23 + ,13 + ,14 + ,21 + ,22 + ,14 + ,16 + ,18 + ,12 + ,24 + ,23 + ,20 + ,23 + ,20 + ,20 + ,18 + ,10 + ,8 + ,20 + ,17 + ,17 + ,9 + ,18 + ,9 + ,24 + ,15 + ,18 + ,25 + ,23 + ,22 + ,20 + ,17 + ,10 + ,21 + ,17 + ,13 + ,25 + ,22 + ,15 + ,22 + ,20 + ,18 + ,21 + ,20 + ,18 + ,21 + ,19 + ,12 + ,22 + ,18 + ,12 + ,27 + ,22 + ,20 + ,24 + ,20 + ,12 + ,24 + ,22 + ,16 + ,21 + ,18 + ,16 + ,18 + ,16 + ,18 + ,16 + ,16 + ,16 + ,22 + ,16 + ,13 + ,20 + ,16 + ,17 + ,18 + ,17 + ,13 + ,20 + ,18 + ,17) + ,dim=c(3 + ,162) + ,dimnames=list(c('I1' + ,'I2' + ,'I3') + ,1:162)) > y <- array(NA,dim=c(3,162),dimnames=list(c('I1','I2','I3'),1:162)) > 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.76 0.77 0.69 0.52 18 3.5 Reliability if an item is dropped: raw_alpha std.alpha G6(smc) average_r I1 0.62 0.62 0.45 0.45 I2 0.67 0.68 0.52 0.52 I3 0.74 0.75 0.60 0.60 Item statistics n r r.cor r.drop mean sd I1 162 0.86 0.76 0.66 21 3.7 I2 162 0.83 0.69 0.59 19 4.4 I3 162 0.79 0.61 0.54 14 4.6 > > #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/1hxml1350391460.tab") > > > > proc.time() user system elapsed 0.427 0.062 0.472