R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(6,6,6,6,5,5,7,4,6,6,6,6,7,5,7,7,5,6,5,6,7,6,6,6,7,7,6,7,6,6,6,6,5,5,6,4,7,7,7,7,7,7,6,6,6,5,5,6,7,7,7,7,6,6,6,6,5,5,7,7,6,6,6,6,6,7,6,6,5,5,7,5,6,7,6,6,7,7,7,7,6,6,6,6,4,4,5,4,7,7,7,7,7,6,7,7,6,6,5,5,7,7,7,7),dim=c(4,26),dimnames=list(c('Q1/2','Q3/4','Q5/6','Q7/8'),1:26)) > y <- array(NA,dim=c(4,26),dimnames=list(c('Q1/2','Q3/4','Q5/6','Q7/8'),1:26)) > 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.83 0.82 0.82 0.54 6.1 0.7 Reliability if an item is dropped: raw_alpha std.alpha G6(smc) average_r Q1/2 0.71 0.70 0.66 0.44 Q3/4 0.79 0.78 0.75 0.55 Q5/6 0.88 0.88 0.84 0.71 Q7/8 0.73 0.72 0.71 0.46 Item statistics n r r.cor r.drop mean sd Q1/2 26 0.90 0.90 0.82 6.1 0.86 Q3/4 26 0.80 0.74 0.66 6.0 0.87 Q5/6 26 0.65 0.46 0.42 6.2 0.71 Q7/8 26 0.88 0.84 0.77 6.0 0.96 Non missing response frequency for each item 4 5 6 7 miss Q1/2 0.04 0.19 0.38 0.38 0 Q3/4 0.04 0.23 0.38 0.35 0 Q5/6 0.00 0.15 0.46 0.38 0 Q7/8 0.12 0.08 0.46 0.35 0 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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/wessaorg/rcomp/tmp/1c1u31333264700.tab") > > > > proc.time() user system elapsed 0.274 0.037 0.365