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 <- c(75,74,73,71,91,90,75,65,66,66,67,69,75,79,75,77,100,100,94,83,83,83,84,88,89,98,94,84,111,98,98,83,79,78,80,94,98,104,94,90,115,104,114,99,96,98,104,111,117,125,117,118,151,145,155,133,124,125,131,133,136,141,130,137,177,183,191,166,156,153,164,164,168,173,164,165,205,207,215,190,169,175,188,188,196,201,194,197,237,236,244,222,195,199,207,204,212,222,214,217,258,256,251,223,198,206,214,212,227,238,228,235,275,278,278,251,225,232,238,239) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] 75 75 89 98 117 136 168 196 212 227 NA [2,] 74 79 98 104 125 141 173 201 222 238 NA [3,] 73 75 94 94 117 130 164 194 214 228 NA [4,] 71 77 84 90 118 137 165 197 217 235 NA [5,] 91 100 111 115 151 177 205 237 258 275 NA [6,] 90 100 98 104 145 183 207 236 256 278 NA [7,] 75 94 98 114 155 191 215 244 251 278 NA [8,] 65 83 83 99 133 166 190 222 223 251 NA [9,] 66 83 79 96 124 156 169 195 198 225 NA [10,] 66 83 78 98 125 153 175 199 206 232 NA [11,] 67 84 80 104 131 164 188 207 214 238 NA [12,] 69 88 94 111 133 164 188 204 212 239 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/1olk21281877419.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/2zc1n1281877419.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/3zc1n1281877419.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/4zc1n1281877419.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,] 75.0 74 73.0 71.0 91 90 75 65.0 66 66 67.0 69.0 [2,] 89.0 98 94.0 84.0 111 100 98 83.0 83 83 84.0 94.0 [3,] 126.5 133 123.5 127.5 164 164 173 149.5 140 139 147.5 148.5 [4,] 196.0 201 194.0 197.0 237 236 244 222.0 195 199 207.0 204.0 [5,] 227.0 238 228.0 235.0 275 278 278 251.0 225 232 238.0 239.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 73.03853 81.5371 73.53601 71.0407 101.0454 96.04898 100.0526 [2,] 179.96147 184.4629 173.46399 183.9593 226.9546 231.95102 245.9474 [,8] [,9] [,10] [,11] [,12] [1,] 80.05006 84.04033 81.04178 86.0443 93.53961 [2,] 218.94994 195.95967 196.95822 208.9557 203.46039 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(75, 89, 126.5, 196, 227, 74, 98, 133, 201, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5r3iq1281877419.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] [,8] [,9] [,10] [,11] [1,] 65.0 75 78.0 90.0 117 130.0 164.0 194.0 198.0 225 NA [2,] 66.5 78 81.5 97.0 121 139.0 168.5 196.5 212.0 230 NA [3,] 72.0 83 91.5 101.5 128 160.0 181.5 202.5 215.5 238 NA [4,] 75.0 91 98.0 107.5 139 171.5 197.5 229.0 237.0 263 NA [5,] 75.0 100 111.0 115.0 155 191.0 215.0 244.0 258.0 278 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 68.12309 77.07061 83.97424 96.71088 119.7901 145.1765 168.2729 187.6765 [2,] 75.87691 88.92939 99.02576 106.28912 136.2099 174.8235 194.7271 217.3235 [,9] [,10] [,11] [1,] 204.0973 222.9485 NA [2,] 226.9027 253.0515 NA $out [1] 91 90 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(65, 66.5, 72, 75, 75, 75, 78, 83, 91, 100, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6r3iq1281877419.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,] 57.09729 152.0 92.500 [2,] 58.65229 161.5 99.750 [3,] 60.50778 168.0 104.875 [4,] 68.36922 185.0 122.000 [5,] 74.15487 203.0 134.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 56.07582 157.2815 94.72663 [2,] 64.93974 178.7185 115.02337 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(57.0972853995704, 58.6522867906903, 60.5077780430222, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1olk21281877419.ps tmp/1olk21281877419.png",intern=TRUE)) character(0) > try(system("convert tmp/2zc1n1281877419.ps tmp/2zc1n1281877419.png",intern=TRUE)) character(0) > try(system("convert tmp/3zc1n1281877419.ps tmp/3zc1n1281877419.png",intern=TRUE)) character(0) > try(system("convert tmp/4zc1n1281877419.ps tmp/4zc1n1281877419.png",intern=TRUE)) character(0) > try(system("convert tmp/5r3iq1281877419.ps tmp/5r3iq1281877419.png",intern=TRUE)) character(0) > try(system("convert tmp/6r3iq1281877419.ps tmp/6r3iq1281877419.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.042 0.791 1.512