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(95,94,93,91,111,110,95,85,86,86,87,89,93,96,99,92,109,110,97,88,93,93,89,89,91,97,99,85,101,105,88,80,87,84,87,87,85,96,102,93,111,117,101,88,98,89,93,93,95,105,109,94,113,125,106,95,109,100,94,94,94,103,103,80,106,117,99,95,116,118,100,100,105,121,131,108,136,149,131,137,164,169,154,160,166,186,197,166,191,207,187,191,222,230,210,224,234,251,258,227,254,281,261,264,286,293,276,292,299,319,329,293,318,346,327,329,353,355,332,346) > 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,] 95 93 91 85 95 94 105 166 234 299 NA [2,] 94 96 97 96 105 103 121 186 251 319 NA [3,] 93 99 99 102 109 103 131 197 258 329 NA [4,] 91 92 85 93 94 80 108 166 227 293 NA [5,] 111 109 101 111 113 106 136 191 254 318 NA [6,] 110 110 105 117 125 117 149 207 281 346 NA [7,] 95 97 88 101 106 99 131 187 261 327 NA [8,] 85 88 80 88 95 95 137 191 264 329 NA [9,] 86 93 87 98 109 116 164 222 286 353 NA [10,] 86 93 84 89 100 118 169 230 293 355 NA [11,] 87 89 87 93 94 100 154 210 276 332 NA [12,] 89 89 87 93 94 100 160 224 292 346 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/10kpr1280843166.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/2btpc1280843166.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/3btpc1280843166.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/43k6f1280843166.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,] 85 94 93 80.0 101 105 88.0 80 86.0 84 87 87 [2,] 93 96 99 91.0 109 110 97.0 88 93.0 89 89 89 [3,] 95 104 106 93.5 112 121 103.5 95 112.5 109 97 97 [4,] 166 186 197 166.0 191 207 187.0 191 222.0 230 210 224 [5,] 234 319 329 227.0 254 346 261.0 329 353.0 355 332 346 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 58.52629 59.03241 57.03529 56.02701 71.02953 72.53493 58.53241 [2,] 131.47371 148.96759 154.96471 130.97299 152.97047 169.46507 148.46759 [,8] [,9] [,10] [,11] [,12] [1,] 43.53709 48.04646 38.55078 36.54358 29.54862 [2,] 146.46291 176.95354 179.44922 157.45642 164.45138 $out [1] 299 293 318 327 $group [1] 1 4 5 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(85, 93, 95, 166, 234, 94, 96, 104, 186, 319, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/53k6f1280843166.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,] 85.0 88.0 80.0 85.0 94.0 80.0 105.0 166.0 227.0 293.0 NA [2,] 86.5 90.5 86.0 91.0 94.5 97.0 126.0 186.5 252.5 318.5 NA [3,] 92.0 93.0 87.5 94.5 102.5 101.5 136.5 194.0 262.5 329.0 NA [4,] 95.0 98.0 98.0 101.5 109.0 111.0 157.0 216.0 283.5 346.0 NA [5,] 95.0 109.0 105.0 117.0 125.0 118.0 169.0 230.0 293.0 355.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,] 88.1231 89.5792 82.02672 89.71088 95.88645 95.1145 122.3607 180.5449 [2,] 95.8769 96.4208 92.97328 99.28912 109.11355 107.8855 150.6393 207.4551 [,9] [,10] [,11] [1,] 248.3607 316.4571 NA [2,] 276.6393 341.5429 NA $out [1] 111 110 110 $group [1] 1 1 2 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(85, 86.5, 92, 95, 95, 88, 90.5, 93, 98, 109, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6euni1280843166.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,] 72.89940 213 57.500 [2,] 77.39795 221 70.625 [3,] 83.68165 240 80.750 [4,] 92.39402 254 109.625 [5,] 98.21298 271 124.750 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 76.84185 224.9485 62.96184 [2,] 90.52146 255.0515 98.53816 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(72.8993979551424, 77.3979488542742, 83.681654679338, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/10kpr1280843166.ps tmp/10kpr1280843166.png",intern=TRUE)) character(0) > try(system("convert tmp/2btpc1280843166.ps tmp/2btpc1280843166.png",intern=TRUE)) character(0) > try(system("convert tmp/3btpc1280843166.ps tmp/3btpc1280843166.png",intern=TRUE)) character(0) > try(system("convert tmp/43k6f1280843166.ps tmp/43k6f1280843166.png",intern=TRUE)) character(0) > try(system("convert tmp/53k6f1280843166.ps tmp/53k6f1280843166.png",intern=TRUE)) character(0) > try(system("convert tmp/6euni1280843166.ps tmp/6euni1280843166.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.040 0.791 3.560