R version 2.12.0 (2010-10-15) Copyright (C) 2010 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(-1 + ,0 + ,1 + ,-1 + ,1 + ,1 + ,1 + ,0 + ,-1 + ,1 + ,1 + ,1 + ,1 + ,1 + ,1 + ,-1 + ,-1 + ,1 + ,-1 + ,0 + ,0 + ,1 + ,1 + ,-1 + ,-1 + ,0 + ,-1 + ,-1 + ,1 + ,1 + ,0 + ,1 + ,-1 + ,-1 + ,1 + ,-1 + ,-1 + ,1 + ,-1 + ,-1 + ,1 + ,-1 + ,1 + ,-1 + ,1 + ,1 + ,1 + ,1 + ,-1 + ,1 + ,1 + ,1 + ,1 + ,1 + ,1 + ,-1 + ,-1 + ,1 + ,1 + ,-1 + ,1 + ,0 + ,0 + ,-1 + ,-1 + ,0 + ,-1 + ,0 + ,1 + ,0 + ,1 + ,-1 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,0 + ,-1 + ,1 + ,-1 + ,-1 + ,1 + ,0 + ,1 + ,1 + ,-1 + ,1 + ,-1 + ,1 + ,1 + ,1 + ,-1 + ,-1 + ,0 + ,1 + ,1 + ,1 + ,-1 + ,1 + ,-1 + ,1 + ,-1 + ,-1 + ,0 + ,1 + ,1 + ,1 + ,-1 + ,-1 + ,-1 + ,1 + ,-1 + ,1 + ,1 + ,1 + ,1 + ,1 + ,0 + ,1 + ,-1 + ,1 + ,1 + ,1 + ,1 + ,-1 + ,0 + ,1 + ,1 + ,-1 + ,1 + ,1 + ,-1 + ,-1 + ,-1 + ,0 + ,-1 + ,1 + ,0 + ,-1 + ,1 + ,1 + ,-1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]) + { + 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.14 0.16 0.22 0.023 0.066 0.31 Reliability if an item is dropped: raw_alpha std.alpha G6(smc) average_r Q1 0.078 0.099 0.16 0.016 Q2 0.078 0.120 0.18 0.019 Q3 0.235 0.232 0.26 0.041 Q4 0.184 0.197 0.23 0.034 Q5 0.042 0.078 0.15 0.012 Q6 0.055 0.070 0.14 0.011 Q7 0.191 0.218 0.26 0.038 Q8 0.067 0.094 0.16 0.015 Item statistics n r r.cor r.drop mean sd Q1 85 0.43 0.290 0.127 -0.694 0.62 Q2 85 0.41 0.222 0.096 0.129 0.94 Q3 85 0.26 -0.054 -0.097 -0.082 0.92 Q4 85 0.31 0.045 -0.033 0.141 0.89 Q5 85 0.46 0.345 0.156 0.353 0.78 Q6 85 0.47 0.351 0.147 0.376 0.72 Q7 85 0.28 -0.057 -0.062 0.565 0.75 Q8 85 0.44 0.294 0.113 -0.259 0.87 Non missing response frequency for each item -1 0 1 miss Q1 0.78 0.14 0.08 0 Q2 0.38 0.12 0.51 0 Q3 0.46 0.16 0.38 0 Q4 0.33 0.20 0.47 0 Q5 0.19 0.27 0.54 0 Q6 0.14 0.34 0.52 0 Q7 0.15 0.13 0.72 0 Q8 0.54 0.18 0.28 0 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/rcomp/tmp/1mwq81324168569.tab") > > > > proc.time() user system elapsed 0.530 0.050 0.569