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(112,118,129,99,116,168,118,129,205,147,150,267,126,129,124,97,102,127,222,214,118,141,154,226,89,77,82,97,127,121,117,117,106,112,134,169,75,108,115,85,101,108,109,124,105,95,135,164,88,85,112,87,91,87,87,142,95,108,139,159,61,82,124,93,108,75,87,103,90,108,123,129,57,65,67,71,76,67,110,118,99,85,107,141,58,65,70,86,93,74,87,73,101,100,96,157,63,115,70,66,67,83,79,77,102,116,100,135,71,60,89,74,73,91,86,74,87,87,109,137,43,69,73,77,69,76,78,70,83,65,110,132,54,55,66,65,60,65,96,55,71,63,74,106,34,47,56,53,53,55,67,52,46,51,58,91,33,40,46,45,41,55,57,54,46,52,48,77,77,35,42,48,44,45,0,0,46,51,63,84,30,39,45,52,28,40,62) > 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] 187 > (np <- floor(n / par1)) [1] 15 > 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] 16 16 16 16 16 16 16 15 15 15 15 15 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 112 126 89 75 88 61 57 58 63 71 43 54 34 [2,] 118 129 77 108 85 82 65 65 115 60 69 55 47 [3,] 129 124 82 115 112 124 67 70 70 89 73 66 56 [4,] 99 97 97 85 87 93 71 86 66 74 77 65 53 [5,] 116 102 127 101 91 108 76 93 67 73 69 60 53 [6,] 168 127 121 108 87 75 67 74 83 91 76 65 55 [7,] 118 222 117 109 87 87 110 87 79 86 78 96 67 [8,] 129 214 117 124 142 103 118 73 77 74 70 55 52 [9,] 205 118 106 105 95 90 99 101 102 87 83 71 46 [10,] 147 141 112 95 108 108 85 100 116 87 65 63 51 [11,] 150 154 134 135 139 123 107 96 100 109 110 74 58 [12,] 267 226 169 164 159 129 141 157 135 137 132 106 91 [,14] [,15] [,16] [1,] 33 77 30 [2,] 40 35 39 [3,] 46 42 45 [4,] 45 48 52 [5,] 41 44 28 [6,] 55 45 40 [7,] 57 0 62 [8,] 54 0 NA [9,] 46 46 NA [10,] 52 51 NA [11,] 48 63 NA [12,] 77 84 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/yougetitorg/rcomp/tmp/11kuq1305047584.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/2ep4e1305047584.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/3ozdx1305047584.ps",horizontal=F,onefile=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/yougetitorg/rcomp/tmp/4hf6h1305047584.ps",horizontal=F,onefile=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,] 30.0 35.0 42.0 45.0 28.0 40.0 57.0 0.0 46.0 51 48.0 77.0 [2,] 48.5 51.0 61.0 59.0 56.5 60.0 72.5 62.5 77.0 64 85.0 117.5 [3,] 62.0 67.0 71.5 75.5 74.5 75.5 87.0 77.0 95.0 95 109.0 137.0 [4,] 82.5 96.5 113.5 90.0 101.5 99.5 109.5 121.0 103.5 110 134.5 161.5 [5,] 126.0 129.0 129.0 99.0 127.0 127.0 118.0 142.0 118.0 147 154.0 226.0 $n [1] 16 16 16 16 16 16 16 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 48.57 49.0275 50.7625 63.255 56.725 59.8975 72.385 53.13468 84.18921 [2,] 75.43 84.9725 92.2375 87.745 92.275 91.1025 101.615 100.86532 105.81079 [,10] [,11] [,12] [1,] 76.2341 88.80626 119.0500 [2,] 113.7659 129.19374 154.9500 $out [1] 168 222 0 214 205 267 $group [1] 6 7 7 8 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(30, 48.5, 62, 82.5, 126, 35, 51, 67, 96.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/5ldge1305047584.ps",horizontal=F,onefile=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] [,12] [1,] 99 97 77.0 75.0 85.0 61.0 57.0 58.0 63.0 60.0 65.0 54.0 [2,] 117 121 93.0 98.0 87.0 84.5 67.0 71.5 68.5 73.5 69.0 57.5 [3,] 129 128 114.5 108.0 93.0 98.0 80.5 86.5 81.0 86.5 74.5 65.0 [4,] 159 184 124.0 119.5 125.5 115.5 108.5 98.0 108.5 90.0 80.5 72.5 [5,] 205 226 169.0 135.0 159.0 129.0 141.0 101.0 135.0 109.0 83.0 74.0 [,13] [,14] [,15] [,16] [1,] 46 33.0 35.0 28.0 [2,] 49 43.0 38.5 34.5 [3,] 53 47.0 45.5 40.0 [4,] 57 54.5 57.0 48.5 [5,] 67 57.0 84.0 62.0 $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 109.8435 99.26528 100.3607 98.1937 75.43989 83.8607 61.57157 74.41317 [2,] 148.1565 156.73472 128.6393 117.8063 110.56011 112.1393 99.42843 98.58683 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 62.75573 78.97424 69.25477 58.1584 49.35115 41.75477 37.06203 31.63943 [2,] 99.24427 94.02576 79.74523 71.8416 56.64885 52.24523 53.93797 48.36057 $out [1] 267 164 157 137 43 110 132 96 106 34 91 77 0 0 $group [1] 1 4 8 10 11 11 11 12 12 13 13 14 15 15 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] NA Warning message: In bxp(list(stats = c(99, 117, 129, 159, 205, 97, 121, 128, 184, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/yougetitorg/rcomp/tmp/66kic1305047584.ps",horizontal=F,onefile=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,] 18.39463 54.0 26.500 [2,] 29.32930 95.0 30.625 [3,] 32.38257 102.5 40.375 [4,] 41.87994 174.5 47.625 [5,] 50.78592 222.0 58.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 26.65814 66.23952 32.62119 [2,] 38.10700 138.76048 48.12881 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(18.3946323692538, 29.3293014471748, 32.3825717229903, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/11kuq1305047584.ps tmp/11kuq1305047584.png",intern=TRUE)) character(0) > try(system("convert tmp/2ep4e1305047584.ps tmp/2ep4e1305047584.png",intern=TRUE)) character(0) > try(system("convert tmp/3ozdx1305047584.ps tmp/3ozdx1305047584.png",intern=TRUE)) character(0) > try(system("convert tmp/4hf6h1305047584.ps tmp/4hf6h1305047584.png",intern=TRUE)) character(0) > try(system("convert tmp/5ldge1305047584.ps tmp/5ldge1305047584.png",intern=TRUE)) character(0) > try(system("convert tmp/66kic1305047584.ps tmp/66kic1305047584.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.290 0.970 1.801