R version 2.10.1 (2009-12-14) 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(300,299,298,296,316,315,300,290,291,291,292,294,302,296,282,282,298,300,289,275,270,269,268,260,271,269,260,262,285,286,272,248,240,234,231,222,233,236,226,232,248,253,233,216,209,202,204,193,201,201,188,198,220,225,215,198,195,183,180,170,175,180,161,174,195,198,188,173,162,149,140,129,132,133,116,128,148,154,152,141,136,119,114,100,108,115,101,116,131,133,135,124,131,113,118,99,107,112,106,121,138,134,132,121,132,113,112,91,96,99,99,110,127,122,124,114,129,113,115,94) > 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,] 300 302 271 233 201 175 132 108 107 96 NA [2,] 299 296 269 236 201 180 133 115 112 99 NA [3,] 298 282 260 226 188 161 116 101 106 99 NA [4,] 296 282 262 232 198 174 128 116 121 110 NA [5,] 316 298 285 248 220 195 148 131 138 127 NA [6,] 315 300 286 253 225 198 154 133 134 122 NA [7,] 300 289 272 233 215 188 152 135 132 124 NA [8,] 290 275 248 216 198 173 141 124 121 114 NA [9,] 291 270 240 209 195 162 136 131 132 129 NA [10,] 291 269 234 202 183 149 119 113 113 113 NA [11,] 292 268 231 204 180 140 114 118 112 115 NA [12,] 294 260 222 193 170 129 100 99 91 94 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/rcomp/tmp/1oxpx1277999070.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/rcomp/tmp/2z6p01277999070.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/rcomp/tmp/3z6p01277999070.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/rcomp/tmp/4sf6l1277999070.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,] 96 99.0 99.0 110 127.0 122.0 124.0 114.0 129.0 113 112 91.0 [2,] 108 115.0 106.0 121 138.0 134.0 135.0 124.0 132.0 113 115 99.0 [3,] 188 190.5 174.5 186 207.5 211.5 201.5 185.5 178.5 166 160 149.5 [4,] 271 269.0 260.0 262 285.0 286.0 272.0 248.0 240.0 234 231 222.0 [5,] 302 299.0 298.0 296 316.0 315.0 300.0 290.0 291.0 291 292 294.0 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 106.5587 113.5555 97.55546 115.5508 134.0529 135.5547 133.0493 123.5447 [2,] 269.4413 267.4445 251.44454 256.4492 280.9471 287.4453 269.9507 247.4553 [,9] [,10] [,11] [,12] [1,] 124.5389 105.5436 102.0418 88.0443 [2,] 232.4611 226.4564 217.9582 210.9557 $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(96, 108, 188, 271, 302, 99, 115, 190.5, 269, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5sf6l1277999070.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,] 290.0 260.0 222.0 193.0 170.0 129.0 100.0 99.0 91.0 94.0 NA [2,] 291.5 269.5 237.0 206.5 185.5 155.0 117.5 110.5 109.5 99.0 NA [3,] 297.0 282.0 261.0 229.0 198.0 173.5 132.5 117.0 117.0 113.5 NA [4,] 300.0 297.0 271.5 234.5 208.0 184.0 144.5 131.0 132.0 123.0 NA [5,] 300.0 302.0 286.0 253.0 225.0 198.0 154.0 135.0 138.0 129.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 293.1231 269.4571 245.2643 216.229 187.7376 160.2729 120.1851 107.6498 [2,] 300.8769 294.5429 276.7357 241.771 208.2624 186.7271 144.8149 126.3502 [,9] [,10] [,11] [1,] 106.7376 102.5534 NA [2,] 127.2624 124.4466 NA $out [1] 316 315 $group [1] 1 1 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(290, 291.5, 297, 300, 300, 260, 269.5, 282, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6sf6l1277999070.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,] 61.23770 162.0 99.250 [2,] 67.95088 177.0 111.625 [3,] 73.00611 187.5 127.375 [4,] 76.31801 199.5 140.000 [5,] 81.06959 206.0 147.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 69.18981 177.2376 114.4330 [2,] 76.82241 197.7624 140.3170 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(61.237697177111, 67.9508789921468, 73.0061098806823, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1oxpx1277999070.ps tmp/1oxpx1277999070.png",intern=TRUE)) character(0) > try(system("convert tmp/2z6p01277999070.ps tmp/2z6p01277999070.png",intern=TRUE)) character(0) > try(system("convert tmp/3z6p01277999070.ps tmp/3z6p01277999070.png",intern=TRUE)) character(0) > try(system("convert tmp/4sf6l1277999070.ps tmp/4sf6l1277999070.png",intern=TRUE)) character(0) > try(system("convert tmp/5sf6l1277999070.ps tmp/5sf6l1277999070.png",intern=TRUE)) character(0) > try(system("convert tmp/6sf6l1277999070.ps tmp/6sf6l1277999070.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.19 1.06 1.36