R version 2.6.2 (2008-02-08) Copyright (C) 2008 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 <- c(113,110,107,103,98,98,137,148,147,139,130,128,127,123,118,114,108,111,151,159,158,148,138,137,136,133,126,120,114,116,153,162,161,149,139,135,130,127,122,117,112,113,149,157,157,147,137,132,125,123,117,114,111,112,144,150,149,134,123,116,117,111,105,102,95,93,124,130,124,115,106,105) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 72 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + if (j == par1) j = 0 + } > ari [1] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 113 127 136 130 125 117 NA [2,] 110 123 133 127 123 111 NA [3,] 107 118 126 122 117 105 NA [4,] 103 114 120 117 114 102 NA [5,] 98 108 114 112 111 95 NA [6,] 98 111 116 113 112 93 NA [7,] 137 151 153 149 144 124 NA [8,] 148 159 162 157 150 130 NA [9,] 147 158 161 157 149 124 NA [10,] 139 148 149 147 134 115 NA [11,] 130 138 139 137 123 106 NA [12,] 128 137 135 132 116 105 NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/www/html/rcomp/tmp/13kcr1210598007.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/2a1mi1210598007.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/30mvi1210598007.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/4s2tx1210598007.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 113 110 105.0 102 95.0 93.0 124.0 148.0 147 115 106.0 105 [2,] 117 111 107.0 103 98.0 98.0 137.0 148.0 147 134 123.0 116 [3,] 126 123 117.5 114 109.5 111.5 146.5 153.5 153 143 133.5 130 [4,] 130 127 122.0 117 112.0 113.0 151.0 159.0 158 148 138.0 135 [5,] 136 133 126.0 120 114.0 116.0 153.0 162.0 161 149 139.0 137 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 117.6146 112.6795 107.8245 104.9695 100.4695 101.8245 137.4695 146.4046 [2,] 134.3854 133.3205 127.1755 123.0305 118.5305 121.1755 155.5305 160.5954 [,9] [,10] [,11] [,12] [1,] 145.9046 133.9695 123.8245 117.7444 [2,] 160.0954 152.0305 143.1755 142.2556 $out [1] 130 124 $group [1] 8 9 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(113, 117, 126, 130, 136, 110, 111, 123, 127, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5xu6o1210598007.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 98.0 108.0 114.0 112.0 111 93.0 NA [2,] 105.0 116.0 123.0 119.5 115 103.5 NA [3,] 120.5 132.0 135.5 131.0 123 108.5 NA [4,] 138.0 149.5 151.0 148.0 139 120.5 NA [5,] 148.0 159.0 162.0 157.0 150 130.0 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 105.4485 116.7204 122.729 118.0010 112.0534 100.7462 NA [2,] 135.5515 147.2796 148.271 143.9990 133.9466 116.2538 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(98, 105, 120.5, 138, 148, 108, 116, 132, 149.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/665od1210598007.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 7.447595 18.0 10.000 [2,] 8.367148 22.0 10.375 [3,] 10.130885 26.0 11.500 [4,] 12.618234 32.5 12.250 [5,] 13.544987 37.0 13.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 8.191936 21.21088 10.6448 [2,] 12.069834 30.78912 12.3552 $out [1] 15.25 $group [1] 3 $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(7.4475946900101, 8.36714758567257, 10.1308852596353, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/13kcr1210598007.ps tmp/13kcr1210598007.png") > system("convert tmp/2a1mi1210598007.ps tmp/2a1mi1210598007.png") > system("convert tmp/30mvi1210598007.ps tmp/30mvi1210598007.png") > system("convert tmp/4s2tx1210598007.ps tmp/4s2tx1210598007.png") > system("convert tmp/5xu6o1210598007.ps tmp/5xu6o1210598007.png") > system("convert tmp/665od1210598007.ps tmp/665od1210598007.png") > > > proc.time() user system elapsed 1.266 0.825 1.537