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(-9.689129094,-15.9156891,-20.03555923,-12.44264761,-2.468740667,-23.97386436,-3.02331487,-8.793616067,3.890809296,-1.836563963,-1.709285854,4.14432084,-12.03301028,-4.733406668,-5.29923341,-1.665398243,2.528592702,-2.076860346,2.08284686,1.362751533,17.9705551,-13.16742762,9.297539752,-0.631604907,-9.595566233,-4.093437696,-8.465289457,15.56005027,8.440539387,5.496633362,-1.542161774,-4.424920628,9.358249829,5.491823987,21.87928431,6.722498409,7.093000066,-17.05020325,0.883582789,15.92450566,3.185445132,-11.26933787,-14.58358037,-29.97174154,0.914837609,6.714446914,8.903871839,23.13841004,26.84332477,8.351341468,39.34532234,16.99485377,13.45289299,29.686769,-9.403389414,-4.311467414,2.792229304,-21.98399447,-28.17586045,-14.08502665) > 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,] -9.689129 -12.0330103 -9.595566 7.0930001 26.843325 NA [2,] -15.915689 -4.7334067 -4.093438 -17.0502032 8.351341 NA [3,] -20.035559 -5.2992334 -8.465289 0.8835828 39.345322 NA [4,] -12.442648 -1.6653982 15.560050 15.9245057 16.994854 NA [5,] -2.468741 2.5285927 8.440539 3.1854451 13.452893 NA [6,] -23.973864 -2.0768603 5.496633 -11.2693379 29.686769 NA [7,] -3.023315 2.0828469 -1.542162 -14.5835804 -9.403389 NA [8,] -8.793616 1.3627515 -4.424921 -29.9717415 -4.311467 NA [9,] 3.890809 17.9705551 9.358250 0.9148376 2.792229 NA [10,] -1.836564 -13.1674276 5.491824 6.7144469 -21.983994 NA [11,] -1.709286 9.2975398 21.879284 8.9038718 -28.175860 NA [12,] 4.144321 -0.6316049 6.722498 23.1384100 -14.085027 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -6.2265600 7.2996036 5.5021285 -24.143203 -18.491983 NA [2,] -4.1198701 -0.5658267 -4.3718518 17.933786 30.993981 NA [3,] 7.5929116 3.6338352 24.0253397 15.040923 -22.350469 NA [4,] 9.9739069 4.1939909 -7.1195109 -12.739061 -3.541961 NA [5,] -21.5051237 -4.6054530 -2.9439060 -14.454783 16.233876 NA [6,] 20.9505495 4.1597072 -7.0387951 -3.314243 -39.090158 NA [7,] -5.7703012 -0.7200953 -2.8827589 -15.388161 5.091922 NA [8,] 12.6844254 16.6078036 13.7831705 30.886579 7.103697 NA [9,] -5.7273733 -31.1379827 -3.8664258 5.799609 -24.776224 NA [10,] 0.1272781 22.4649674 16.3874603 2.189425 -6.191866 NA [11,] 5.8536067 -9.9291447 -15.1567859 14.234538 14.090834 NA [12,] -16.1773311 -8.9639613 0.3705017 3.704915 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/1zg101257774544.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/246761257774544.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/3sdiv1257774544.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/415yl1257774544.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] [1,] -12.033010 -17.050203 -20.0355592 -12.442648 -2.468741 -23.973864 [2,] -9.689129 -15.915689 -8.4652895 -1.665398 2.528593 -11.269338 [3,] -9.595566 -4.733407 -5.2992334 15.560050 3.185445 -2.076860 [4,] 7.093000 -4.093438 0.8835828 15.924506 8.440539 5.496633 [5,] 26.843325 8.351341 0.8835828 16.994854 13.452893 29.686769 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -14.583580 -8.793616 0.9148376 -21.983994 -1.709286 -0.6316049 [2,] -9.403389 -8.793616 2.7922293 -13.167428 -1.709286 -0.6316049 [3,] -3.023315 -4.424921 3.8908093 -1.836564 8.903872 4.1443208 [4,] -1.542162 -4.311467 9.3582498 5.491824 9.297540 6.7224984 [5,] 2.082847 1.362752 17.9705551 6.714447 21.879284 6.7224984 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -21.453776 -13.086980 -11.905123 3.131068 -0.9919215 -13.923653 -8.578039 [2,] 2.262644 3.620166 1.306656 27.989032 7.3628118 9.769933 2.531409 [,8] [,9] [,10] [,11] [,12] [1,] -7.591996 -0.7487243 -15.02114 1.126477 -1.052070 [2,] -1.257846 8.5303429 11.34802 16.681267 9.340712 $out [1] 39.34532 -29.97174 -28.17586 23.13841 -14.08503 $group [1] 3 8 11 12 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-12.03301028, -9.689129094, -9.595566233, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5tpje1257774544.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,] -24.143203 -4.3718518 3.633835 -12.739061 -21.505124 -7.038795 -5.7703012 [2,] -18.491983 -4.1198701 3.633835 -7.119511 -14.454783 -7.038795 -5.7703012 [3,] -6.226560 -0.5658267 7.592912 -3.541961 -4.605453 -3.314243 -2.8827589 [4,] 5.502129 17.9337860 15.040923 4.193991 -2.943906 4.159707 -0.7200953 [5,] 7.299604 30.9939809 24.025340 9.973907 -2.943906 20.950549 5.0919220 [,8] [,9] [,10] [,11] [,12] [1,] 7.103697 -31.137983 -6.1918660 -15.156786 -16.177331 [2,] 12.684425 -24.776224 0.1272781 -9.929145 -12.570646 [3,] 13.783170 -5.727373 2.1894249 5.853607 -4.296730 [4,] 16.607804 -3.866426 16.3874603 14.090834 2.037708 [5,] 16.607804 5.799609 22.4649674 14.234538 3.704915 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -23.18074 -16.14888 -0.4673078 -11.536053 -12.739010 -11.227076 -6.4512216 [2,] 10.72762 15.01723 15.6531311 4.452131 3.528104 4.598591 0.6857039 [,8] [,9] [,10] [,11] [,12] [1,] 11.01092 -20.502184 -9.299979 -11.11885 -15.83733 [2,] 16.55542 9.047437 13.678829 22.82606 7.24387 $out [1] -22.35047 16.23388 -39.09016 -15.38816 30.88658 $group [1] 3 5 6 7 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-24.143203316, -18.491983302, -6.226560006, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6uc351257774544.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,] -23.973864 -13.167428 -9.595566 -29.971742 -28.175860 NA [2,] -14.179168 -5.016320 -4.259179 -12.926459 -11.744208 NA [3,] -5.908465 -1.148502 5.494229 2.050141 5.571785 NA [4,] -1.772925 2.305720 8.899395 7.998436 21.919089 NA [5,] 4.144321 9.297540 21.879284 23.138410 39.345322 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -11.5670364 -4.488133 -0.5074852 -7.493844 -9.78227 NA [2,] -0.2498946 2.191130 11.4959425 11.594126 20.92584 NA $out [1] 17.97056 $group [1] 2 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-23.97386436, -14.179168355, -5.9084654685, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7w06n1257774544.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,] -9.2277988 -9.595566 -10.004563 [2,] -5.1251315 -4.579164 -4.655289 [3,] 0.9047442 -1.956712 -2.092208 [4,] 4.4427327 4.017565 4.639346 [5,] 6.9853362 15.560050 7.129554 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -3.459223 -5.877738 -6.331554 [2,] 5.268711 1.964314 2.147137 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-9.2277988232, -5.125131472, 0.9047442261, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1zg101257774544.ps tmp/1zg101257774544.png") > system("convert tmp/246761257774544.ps tmp/246761257774544.png") > system("convert tmp/3sdiv1257774544.ps tmp/3sdiv1257774544.png") > system("convert tmp/415yl1257774544.ps tmp/415yl1257774544.png") > system("convert tmp/5tpje1257774544.ps tmp/5tpje1257774544.png") > system("convert tmp/6uc351257774544.ps tmp/6uc351257774544.png") > system("convert tmp/7w06n1257774544.ps tmp/7w06n1257774544.png") > > > proc.time() user system elapsed 1.187 0.944 1.537