R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) 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(61,81,87,87,136,147,168,185,137,125,64,45,35,-4,88,85,95,128,186,182,151,106,60,44,30,54,72,88,153,168,181,180,149,84,85,42,54,30,96,110,141,159,164,155,135,93,28,56,56,22,76,83,121,151,208,179,139,99,103,57,44,70,58,91,126,146,199,194,145,131,74,-3,7,10,34,94,105,151,162,175,128,115,62,11,-7,64,80,77,127,158,173,206,147,103,73,52,52,68,77,94,147,160,166,167,155,104,44,53,56,36,76,99,142,150,190,176,175,112,73,52,48,61,68,97,146,160,155,175,163,117,82,55,32,48,53,82,139,150,184,185,138,147,77,32,48,72,76,94,133,164,174,187,149,102,86,35,31,28,75,102,133,178,190,190,147,83,83,46,40,50,61,102,117,158,170,190,155,117,68,40,56,28,66,103,122,166,176,164,160,139,75,44,22,32,42,86,140,163,222,166,183,140,98,69,75,63,81,126,139,171,170,173,144,105,75,41,68,53,61,87,155,159,180,175,138,105,73,26,12,35,64,115,138,138,182,191,155,113,98,29) > 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] 240 > (np <- floor(n / par1)) [1] 20 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 20 20 20 20 20 20 20 20 20 20 20 20 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 61 35 30 54 56 44 7 -7 52 56 48 32 48 [2,] 81 -4 54 30 22 70 10 64 68 36 61 48 72 [3,] 87 88 72 96 76 58 34 80 77 76 68 53 76 [4,] 87 85 88 110 83 91 94 77 94 99 97 82 94 [5,] 136 95 153 141 121 126 105 127 147 142 146 139 133 [6,] 147 128 168 159 151 146 151 158 160 150 160 150 164 [7,] 168 186 181 164 208 199 162 173 166 190 155 184 174 [8,] 185 182 180 155 179 194 175 206 167 176 175 185 187 [9,] 137 151 149 135 139 145 128 147 155 175 163 138 149 [10,] 125 106 84 93 99 131 115 103 104 112 117 147 102 [11,] 64 60 85 28 103 74 62 73 44 73 82 77 86 [12,] 45 44 42 56 57 -3 11 52 53 52 55 32 35 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] 31 40 56 22 75 68 12 NA [2,] 28 50 28 32 63 53 35 NA [3,] 75 61 66 42 81 61 64 NA [4,] 102 102 103 86 126 87 115 NA [5,] 133 117 122 140 139 155 138 NA [6,] 178 158 166 163 171 159 138 NA [7,] 190 170 176 222 170 180 182 NA [8,] 190 190 164 166 173 175 191 NA [9,] 147 155 160 183 144 138 155 NA [10,] 83 117 139 140 105 105 113 NA [11,] 83 68 75 98 75 73 98 NA [12,] 46 40 44 69 41 26 29 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] 20 -39 24 -24 -34 26 3 71 16 -20 13 16 24 [2,] 6 92 18 66 54 -12 24 16 9 40 7 5 4 [3,] 0 -3 16 14 7 33 60 -3 17 23 29 29 18 [4,] 49 10 65 31 38 35 11 50 53 43 49 57 39 [5,] 11 33 15 18 30 20 46 31 13 8 14 11 31 [6,] 21 58 13 5 57 53 11 15 6 40 -5 34 10 [7,] 17 -4 -1 -9 -29 -5 13 33 1 -14 20 1 13 [8,] -48 -31 -31 -20 -40 -49 -47 -59 -12 -1 -12 -47 -38 [9,] -12 -45 -65 -42 -40 -14 -13 -44 -51 -63 -46 9 -47 [10,] -61 -46 1 -65 4 -57 -53 -30 -60 -39 -35 -70 -16 [11,] -19 -16 -43 28 -46 -77 -51 -21 9 -21 -27 -45 -51 [12,] -10 -14 12 0 -13 10 -18 0 3 -4 -23 16 -4 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] -3 10 -28 10 -12 -15 23 NA [2,] 47 11 38 10 18 8 29 NA [3,] 27 41 37 44 45 26 51 NA [4,] 31 15 19 54 13 68 23 NA [5,] 45 41 44 23 32 4 0 NA [6,] 12 12 10 59 -1 21 44 NA [7,] 0 20 -12 -56 3 -5 9 NA [8,] -43 -35 -4 17 -29 -37 -36 NA [9,] -64 -38 -21 -43 -39 -33 -42 NA [10,] 0 -49 -64 -42 -30 -32 -15 NA [11,] -37 -28 -31 -29 -34 -47 -69 NA [12,] -6 16 -22 6 27 -14 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/wessaorg/rcomp/tmp/1eljs1321540182.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/20jbc1321540182.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/3tfz81321540182.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/4wa941321540182.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,] -7.0 -4.0 42.0 77.0 105.0 138.0 155 155.0 128.0 83.0 44.0 11.0 [2,] 30.5 29.0 61.0 86.5 124.0 150.0 169 174.0 138.5 102.5 66.0 33.5 [3,] 46.0 49.0 73.5 94.0 137.0 158.5 178 179.5 148.0 109.0 74.5 44.0 [4,] 56.0 63.5 78.5 102.0 141.5 163.5 188 188.5 155.0 121.0 84.0 52.5 [5,] 75.0 81.0 96.0 115.0 155.0 178.0 208 206.0 175.0 147.0 103.0 69.0 $n [1] 20 20 20 20 20 20 20 20 20 20 20 20 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 36.99088 36.81119 67.31727 88.52387 130.8173 153.7305 171.2873 174.3772 [2,] 55.00912 61.18881 79.68273 99.47613 143.1827 163.2695 184.7127 184.6228 [,9] [,10] [,11] [,12] [1,] 142.1706 102.464 68.14062 37.28732 [2,] 153.8294 115.536 80.85938 50.71268 $out [1] 34 126 95 128 222 183 28 -3 $group [1] 3 4 5 6 7 9 11 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-7, 30.5, 46, 56, 75, -4, 29, 49, 63.5, 81, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5s5w61321540182.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -39.0 -12.0 -3.0 10.0 0.0 -5 -29.0 -59.0 -65.0 -70.0 -77.0 -23.0 [2,] -17.5 7.5 15.0 21.0 12.0 10 -7.0 -45.0 -46.5 -58.5 -46.5 -13.5 [3,] 10.0 17.0 26.5 38.5 21.5 14 0.5 -35.5 -42.0 -40.5 -32.5 -4.0 [4,] 21.5 39.0 39.0 51.5 32.5 42 13.0 -16.0 -27.0 -23.0 -21.0 8.0 [5,] 71.0 66.0 60.0 68.0 46.0 59 33.0 17.0 -12.0 4.0 9.0 27.0 $n [1] 20 20 20 20 20 20 20 20 20 20 20 19 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -3.778651 5.87109 18.02083 27.72439 14.25738 2.69444 -6.565975 -45.74566 [2,] 23.778651 28.12891 34.97917 49.27561 28.74262 25.30556 7.565975 -25.25434 [,9] [,10] [,11] [,12] [1,] -48.88933 -53.04211 -41.50912 -11.793252 [2,] -35.11067 -27.95789 -23.49088 3.793252 $out [1] 92 -56 9 28 $group [1] 2 7 9 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-39, -17.5, 10, 21.5, 71, -12, 7.5, 17, 39, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6rm471321540182.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,] 45.0 -4.0 30.0 28 22.0 -3.0 7.0 -7.0 44.0 36.0 48.0 32.0 [2,] 72.5 52.0 63.0 55 66.5 64.0 22.5 68.5 60.5 64.5 64.5 50.5 [3,] 106.0 91.5 86.5 103 101.0 108.5 99.5 91.5 99.0 105.5 107.0 110.0 [4,] 142.0 139.5 160.5 148 145.0 145.5 139.5 152.5 157.5 162.5 157.5 148.5 [5,] 185.0 186.0 181.0 164 208.0 199.0 175.0 206.0 167.0 190.0 175.0 185.0 [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] 35.0 28.0 40.0 28.0 22.0 41.0 26.0 12.0 NA [2,] 74.0 60.5 55.5 61.0 55.5 75.0 64.5 49.5 NA [3,] 98.0 92.5 109.5 112.5 119.0 115.5 96.0 114.0 NA [4,] 156.5 162.5 156.5 162.0 164.5 157.0 157.0 146.5 NA [5,] 187.0 190.0 190.0 176.0 222.0 173.0 180.0 191.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 74.30058 51.59066 42.0296 60.58208 65.19562 71.3273 46.13551 [2,] 137.69942 131.40934 130.9704 145.41792 136.80438 145.6727 152.86449 [,8] [,9] [,10] [,11] [,12] [,13] [,14] [1,] 53.18704 54.75765 60.80154 64.58208 65.30154 60.3712 45.97712 [2,] 129.81296 143.24235 150.19846 149.41792 154.69846 135.6288 139.02288 [,15] [,16] [,17] [,18] [,19] [,20] [,21] [1,] 63.43322 66.43322 69.28437 78.09925 53.81013 69.75765 NA [2,] 155.56678 158.56678 168.71563 152.90075 138.18987 158.24235 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" NA Warning message: In bxp(list(stats = c(45, 72.5, 106, 142, 185, -4, 52, 91.5, 139.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7l1dw1321540182.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 41.00 44.00 43.250 [2,] 57.30 61.25 57.875 [3,] 103.55 101.50 102.625 [4,] 152.95 153.25 151.750 [5,] 180.00 179.50 181.125 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 59.92339 59.53818 59.80798 [2,] 147.17661 143.46182 145.44202 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(41, 57.3, 103.55, 152.95, 180, 44, 61.25, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1eljs1321540182.ps tmp/1eljs1321540182.png",intern=TRUE)) character(0) > try(system("convert tmp/20jbc1321540182.ps tmp/20jbc1321540182.png",intern=TRUE)) character(0) > try(system("convert tmp/3tfz81321540182.ps tmp/3tfz81321540182.png",intern=TRUE)) character(0) > try(system("convert tmp/4wa941321540182.ps tmp/4wa941321540182.png",intern=TRUE)) character(0) > try(system("convert tmp/5s5w61321540182.ps tmp/5s5w61321540182.png",intern=TRUE)) character(0) > try(system("convert tmp/6rm471321540182.ps tmp/6rm471321540182.png",intern=TRUE)) character(0) > try(system("convert tmp/7l1dw1321540182.ps tmp/7l1dw1321540182.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.622 0.344 1.983