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(2.75675840647712 + ,86.0377999064762 + ,42.9984522539679 + ,33.5054449351983 + ,62.9132382279737 + ,-16.4128806120557 + ,-6.52270297513587 + ,-82.2241535106955 + ,46.5759071081666 + ,51.7913037642593 + ,89.9736608618232 + ,-13.7769558605610 + ,-0.547498629244274 + ,43.7484112333814 + ,107.260977054051 + ,133.441764601343 + ,84.4357033956076 + ,37.8119274071482 + ,-87.1935455457301 + ,-118.771969577577 + ,-226.993428652981 + ,199.325523642462 + ,144.404698877001 + ,112.069029838591 + ,111.504792874925 + ,-18.3387880730807 + ,51.9033275846095 + ,92.9654085924249 + ,4.11307164252776 + ,-180.731575979433 + ,242.202806283966 + ,29.3705651270102 + ,-74.0779181790358 + ,-86.7691638153374 + ,-366.352653743473 + ,208.264095886472 + ,125.258399413132 + ,-292.828740889365 + ,82.153399145297 + ,-304.275237560671 + ,19.7695007775624 + ,-15.2039496812031 + ,252.735165584425 + ,-80.8995541445702 + ,-271.506819998227 + ,-428.856283523052 + ,155.237771456622 + ,-26.7479776990567 + ,-642.951943053832 + ,22.6846703389315 + ,-83.8099608577902 + ,243.516820340160 + ,-67.8138203680369 + ,-83.4728588077735 + ,224.023836737227 + ,154.123353862388 + ,-44.3201964833738 + ,6.8163473353593 + ,172.177056551561 + ,93.6702465237527) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2.756758 -0.5474986 111.504793 125.25840 -642.951943 NA [2,] 86.037800 43.7484112 -18.338788 -292.82874 22.684670 NA [3,] 42.998452 107.2609771 51.903328 82.15340 -83.809961 NA [4,] 33.505445 133.4417646 92.965409 -304.27524 243.516820 NA [5,] 62.913238 84.4357034 4.113072 19.76950 -67.813820 NA [6,] -16.412881 37.8119274 -180.731576 -15.20395 -83.472859 NA [7,] -6.522703 -87.1935455 242.202806 252.73517 224.023837 NA [8,] -82.224154 -118.7719696 29.370565 -80.89955 154.123354 NA [9,] 46.575907 -226.9934287 -74.077918 -271.50682 -44.320196 NA [10,] 51.791304 199.3255236 -86.769164 -428.85628 6.816347 NA [11,] 89.973661 144.4046989 -366.352654 155.23777 172.177057 NA [12,] -13.776956 112.0690298 208.264096 -26.74798 93.670247 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 83.281041 44.295910 -129.84358 -418.08714 665.63661 NA [2,] -43.039348 63.512566 70.24212 374.98214 -106.49463 NA [3,] -9.493007 26.180788 41.06208 -386.42864 327.32678 NA [4,] 29.407793 -49.006061 -88.85234 324.04474 -311.33064 NA [5,] -79.326119 -46.623776 -184.84465 -34.97345 -15.65904 NA [6,] 9.890178 -125.005473 422.93438 267.93912 307.49670 NA [7,] -75.701451 -31.578424 -212.83224 -333.63472 -69.90048 NA [8,] 128.800061 -108.221459 -103.44848 -190.60727 -198.44355 NA [9,] 5.215397 426.318952 -12.69125 -157.34946 51.13654 NA [10,] 38.182357 -54.920825 -279.58349 584.09405 165.36071 NA [11,] -103.750617 -32.335669 574.61675 -181.98575 -78.50681 NA [12,] 13.229457 -0.564237 -83.00570 -616.20397 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/www/html/rcomp/tmp/1pm5m1260190033.ps",horizontal=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/www/html/rcomp/tmp/2kgmq1260190033.ps",horizontal=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/www/html/rcomp/tmp/3owxg1260190033.ps",horizontal=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/www/html/rcomp/tmp/41fn21260190033.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] [1,] -0.5474986 -18.33879 42.99845 33.50544 -67.813820 -180.73158 -87.193546 [2,] -0.5474986 -18.33879 42.99845 33.50544 4.113072 -83.47286 -6.522703 [3,] 2.7567584 22.68467 51.90333 92.96541 19.769501 -16.41288 224.023837 [4,] 111.5047929 43.74841 82.15340 133.44176 62.913238 -15.20395 242.202806 [5,] 125.2583994 86.03780 107.26098 243.51682 84.435703 37.81193 252.735166 [,8] [,9] [,10] [,11] [,12] [1,] -118.77197 -271.50682 -86.769164 89.97366 -26.74798 [2,] -82.22415 -226.99343 -86.769164 89.97366 -13.77696 [3,] -80.89955 -74.07792 6.816347 144.40470 93.67025 [4,] 29.37057 -44.32020 51.791304 155.23777 112.06903 [5,] 154.12335 46.57591 199.325524 172.17706 208.26410 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -76.41911 -21.18599 24.23654 22.35066 -21.77855 -64.65152 48.27502 [2,] 81.93263 66.55533 79.57011 163.58016 61.31755 31.82576 399.77266 [,8] [,9] [,10] [,11] [,12] [1,] -159.752101 -203.15436 -91.09013 98.28924 4.74779 [2,] -2.047007 54.99853 104.72282 190.52016 182.59270 $out [1] -642.95194 -292.82874 -83.80996 -304.27524 -428.85628 -366.35265 $group [1] 1 2 3 4 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.547498629244274, -0.547498629244274, 2.75675840647712, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5iy4c1260190033.ps",horizontal=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] [1,] -418.08714 -106.49463 -9.493007 -88.85234 -79.32612 -125.005473 -333.63472 [2,] -129.84358 -43.03935 -9.493007 -88.85234 -79.32612 9.890178 -212.83224 [3,] 44.29591 63.51257 26.180788 -49.00606 -46.62378 267.939115 -75.70145 [4,] 83.28104 70.24212 41.062081 29.40779 -34.97345 307.496696 -69.90048 [5,] 83.28104 70.24212 41.062081 29.40779 -15.65904 422.934382 -31.57842 [,8] [,9] [,10] [,11] [,12] [1,] -198.4436 -12.691246 -279.58349 -181.98575 -616.20397 [2,] -190.6073 -12.691246 -54.92082 -103.75062 -349.60483 [3,] -108.2215 5.215397 38.18236 -78.50681 -41.78497 [4,] -103.4485 51.136544 165.36071 -32.33567 6.33261 [5,] -103.4485 51.136544 165.36071 -32.33567 13.22946 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -106.2974 -16.53183 -9.54131 -132.56837 -77.96326 57.6511 -176.69667 [2,] 194.8892 143.55696 61.90289 34.55625 -15.28429 478.2271 25.29377 [,8] [,9] [,10] [,11] [,12] [1,] -169.80764 -39.88516 -117.4680 -128.96843 -322.9755 [2,] -46.63528 50.31595 193.8327 -28.04519 239.4056 $out [1] 665.6366 374.9821 -386.4286 327.3268 324.0447 -311.3306 -184.8446 [8] 128.8001 426.3190 -157.3495 584.0941 574.6167 $group [1] 1 2 3 3 4 4 5 8 9 9 10 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-418.087140302497, -129.843580948006, 44.2959098626257, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/61va41260190033.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] [1,] -82.22415 -226.99343 -180.73158 -428.85628 -83.80996 NA [2,] -10.14983 -43.87052 -80.42354 -282.16778 -75.64334 NA [3,] 38.25195 64.09206 16.74182 -20.97596 14.75051 NA [4,] 57.35227 122.75540 102.23510 103.70590 163.15021 NA [5,] 89.97366 199.32552 242.20281 252.73517 243.51682 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 7.463787 -11.90714 -66.57001 -196.9755 -94.16483 NA [2,] 69.040110 140.09126 100.05365 155.0236 123.66585 NA $out [1] -366.3527 -642.9519 $group [1] 3 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-82.2241535106955, -10.1498294178484, 38.2519485945831, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7yt751260190033.ps",horizontal=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,] -114.0644912 -80.899554 -135.65681 [2,] -51.5701610 -6.828061 -21.95786 [3,] 0.5015935 21.227086 41.32960 [4,] 39.9660396 93.317828 73.02477 [5,] 125.0491120 224.023837 122.60572 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -41.24868 -24.45013 -1.992618 [2,] 42.25187 66.90430 84.651810 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-114.064491241090, -51.5701610269626, 0.501593543219006, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1pm5m1260190033.ps tmp/1pm5m1260190033.png") > system("convert tmp/2kgmq1260190033.ps tmp/2kgmq1260190033.png") > system("convert tmp/3owxg1260190033.ps tmp/3owxg1260190033.png") > system("convert tmp/41fn21260190033.ps tmp/41fn21260190033.png") > system("convert tmp/5iy4c1260190033.ps tmp/5iy4c1260190033.png") > system("convert tmp/61va41260190033.ps tmp/61va41260190033.png") > system("convert tmp/7yt751260190033.ps tmp/7yt751260190033.png") > > > proc.time() user system elapsed 1.224 0.950 7.234