R version 2.9.0 (2009-04-17) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(4 + ,4 + ,5 + ,4 + ,4 + ,4 + ,3 + ,3 + ,4 + ,4 + ,2 + ,3 + ,3 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,5 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,2 + ,2 + ,2 + ,2 + ,2 + ,1 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,5 + ,5 + ,4 + ,5 + ,5 + ,3 + ,4 + ,5 + ,4 + ,3 + ,5 + ,4 + ,4 + ,3 + ,3 + ,4 + ,4 + ,2 + ,2 + ,3 + ,2 + ,4 + ,3 + ,4 + ,4 + ,3 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,3 + ,4 + ,4 + ,2 + ,3 + ,3 + ,3 + ,3 + ,3 + ,4 + ,4 + ,4 + ,3 + ,3 + ,4 + ,3 + ,4 + ,3 + ,4 + ,4 + ,4 + ,0 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,2 + ,3 + ,2 + ,3 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,4 + ,3 + ,3 + ,3 + ,5 + ,5 + ,5 + ,3 + ,4 + ,4 + ,3 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,3 + ,5 + ,5 + ,5 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,2 + ,3 + ,4 + ,4 + ,4 + ,4 +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+ ,4 + ,3 + ,3 + ,4 + ,4 + ,4 + ,4 + ,5 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,3 + ,2 + ,3 + ,1 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,5 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,3 + ,4 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,2 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,4 + ,5 + ,4 + ,4 + ,4 + ,5 + ,5 + ,5 + ,4 + ,4 + ,3 + ,4 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,4 + ,4 + ,3 + ,4 + ,4 + ,3 + ,3 + ,4 + ,4 + ,3 + ,4 + ,3 + ,4) + ,dim=c(3 + ,156) + ,dimnames=list(c('Q1_3' + ,'Q1_9' + ,'Q1_14') + ,1:156)) > y <- array(NA,dim=c(3,156),dimnames=list(c('Q1_3','Q1_9','Q1_14'),1:156)) > 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.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > 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.65 0.65 0.56 0.38 3.7 0.59 Reliability if an item is dropped: raw_alpha std.alpha G6(smc) average_r Q1_3 0.62 0.62 0.45 0.45 Q1_9 0.52 0.52 0.35 0.35 Q1_14 0.52 0.52 0.35 0.35 Item statistics n r r.cor r.drop mean sd Q1_3 156 0.74 0.51 0.41 3.5 0.81 Q1_9 156 0.78 0.61 0.49 3.8 0.76 Q1_14 156 0.78 0.61 0.48 3.8 0.74 Non missing response frequency for each item 0 1 2 3 4 5 miss Q1_3 0.01 0.01 0.08 0.27 0.61 0.02 0 Q1_9 0.01 0.01 0.06 0.16 0.69 0.08 0 Q1_14 0.00 0.01 0.04 0.24 0.58 0.12 0 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/www/html/rcomp/tmp/1voli1289856248.tab") > > > proc.time() user system elapsed 0.272 0.040 1.104