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(83 + ,96 + ,14 + ,79 + ,91 + ,13 + ,92 + ,108 + ,16 + ,83 + ,95 + ,13 + ,92 + ,105 + ,14 + ,103 + ,117 + ,15 + ,82 + ,94 + ,14 + ,86 + ,98 + ,13 + ,106 + ,120 + ,15 + ,79 + ,91 + ,13 + ,86 + ,100 + ,13 + ,76 + ,90 + ,13 + ,108 + ,123 + ,16 + ,82 + ,97 + ,16 + ,108 + ,120 + ,12 + ,118 + ,133 + ,15 + ,127 + ,141 + ,16 + ,123 + ,138 + ,16 + ,72 + ,85 + ,12 + ,105 + ,121 + ,16 + ,63 + ,74 + ,13 + ,86 + ,100 + ,14 + ,58 + ,67 + ,11 + ,59 + ,73 + ,12 + ,100 + ,116 + ,15 + ,100 + ,115 + ,15 + ,78 + ,92 + ,14 + ,94 + ,109 + ,15 + ,105 + ,120 + ,15 + ,89 + ,105 + ,15 + ,101 + ,115 + ,16 + ,92 + ,105 + ,15 + ,105 + ,122 + ,16 + ,76 + ,87 + ,12 + ,80 + ,94 + ,16 + ,66 + ,78 + ,12 + ,117 + ,135 + ,18 + ,94 + ,113 + ,18 + ,107 + ,123 + ,15 + ,110 + ,126 + ,17 + ,110 + ,127 + ,17 + ,106 + ,120 + ,16 + ,94 + ,108 + ,14 + ,71 + ,83 + ,14 + ,101 + ,117 + ,15 + ,84 + ,96 + ,14 + ,89 + ,103 + ,14 + ,119 + ,134 + ,17 + ,97 + ,112 + ,15 + ,82 + ,93 + ,14 + ,89 + ,103 + ,15 + ,70 + ,84 + ,14 + ,101 + ,116 + ,15 + ,81 + ,97 + ,15 + ,74 + ,87 + ,14 + ,107 + ,122 + ,15 + ,97 + ,111 + ,14 + ,83 + ,101 + ,16 + ,95 + ,109 + ,15 + ,82 + ,96 + ,15 + ,88 + ,100 + ,14 + ,74 + ,90 + ,16 + ,104 + ,120 + ,16 + ,73 + ,86 + ,13 + ,73 + ,85 + ,13 + ,81 + ,96 + ,15 + ,79 + ,93 + ,14 + ,83 + ,95 + ,13 + ,111 + ,127 + ,17 + ,138 + ,156 + ,18 + ,81 + ,94 + ,13 + ,107 + ,123 + ,16 + ,66 + ,80 + ,13 + ,81 + ,98 + ,15 + ,74 + ,88 + ,15 + ,96 + ,109 + ,13 + ,86 + ,98 + ,14 + ,69 + ,83 + ,14 + ,73 + ,85 + ,14 + ,71 + ,85 + ,15 + ,64 + ,76 + ,12 + ,79 + ,96 + ,16 + ,60 + ,72 + ,13 + ,111 + ,125 + ,15 + ,107 + ,121 + ,16 + ,90 + ,103 + ,14 + ,98 + ,113 + ,17 + ,77 + ,89 + ,12 + ,93 + ,108 + ,16 + ,68 + ,80 + ,13 + ,74 + ,87 + ,13 + ,70 + ,84 + ,14 + ,80 + ,93 + ,14 + ,81 + ,94 + ,13 + ,72 + ,87 + ,15 + ,81 + ,95 + ,15 + ,92 + ,106 + ,15 + ,81 + ,94 + ,12) + ,dim=c(3 + ,98) + ,dimnames=list(c('Gewicht' + ,'Cholesterol' + ,'Bloeddruk') + ,1:98)) > y <- array(NA,dim=c(3,98),dimnames=list(c('Gewicht','Cholesterol','Bloeddruk'),1:98)) > 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.79 0.92 0.97 0.8 69 12 Reliability if an item is dropped: raw_alpha std.alpha G6(smc) average_r Gewicht 0.22 0.84 0.72 0.72 Cholesterol 0.22 0.81 0.68 0.68 Bloeddruk 1.00 1.00 1.00 1.00 Item statistics n r r.cor r.drop mean sd Gewicht 98 0.96 0.97 1.0 89 16.3 Cholesterol 98 0.97 0.99 1.0 103 17.3 Bloeddruk 98 0.86 0.78 0.7 15 1.5 > > #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/1ln5v1324115061.tab") > > > > proc.time() user system elapsed 0.390 0.040 0.417