R version 2.6.1 (2007-11-26) Copyright (C) 2007 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(0.000953461729980812 + ,-0.0569101464218478 + ,0.0114233162752314 + ,-0.0871190622857896 + ,-0.0444281055769495 + ,0.0333368666259414 + ,0.194704755977581 + ,-0.133353120942145 + ,-0.0285168391700838 + ,-0.0363655656431190 + ,-0.0292629186360326 + ,0.0530894830904098 + ,-0.0525914154196951 + ,-0.0386365462548281 + ,0.090566136275336 + ,0.0207026569389061 + ,0.0692128272149964 + ,-0.178067258929560 + ,-0.0328419411633232 + ,-0.0739405859319501 + ,-0.0217306028713136 + ,-0.0155451837263637 + ,0.0193142214554906 + ,-0.0816522001420693 + ,-0.0296748246681962 + ,0.0630047763174753 + ,0.0658730806229442 + ,-0.0122353073404458 + ,-0.00939186116981672 + ,-0.114781577037343 + ,-0.0532857423487761 + ,-0.0656657839937065 + ,-0.0225349518427599 + ,-0.0229231761304629 + ,0.00730037880271373 + ,0.0166961217654499 + ,0.00361245267112364 + ,-0.00760295848135872 + ,0.00223311886393862 + ,-0.0187323295391295 + ,0.0451844857148377 + ,-0.0580650941189386 + ,-0.0600601820625225 + ,0.000136965900622954 + ,0.0122132432331972 + ,0.0044255762836708 + ,0.0680835040726765 + ,0.100703937060142 + ,-0.0365566352690836 + ,-0.0641132143464287 + ,0.0594908526896633 + ,-0.0125547552563741 + ,0.0337828622355548 + ,-0.0173847051725452 + ,0.110062607007236 + ,0.0468059773663448 + ,0.0136303206151601 + ,0.0439033538049421 + ,-0.00943301241449035 + ,-0.123520788413688) > 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,] 0.0009534617 -0.05259142 -0.029674825 0.0036124527 -0.036556635 NA [2,] -0.0569101464 -0.03863655 0.063004776 -0.0076029585 -0.064113214 NA [3,] 0.0114233163 0.09056614 0.065873081 0.0022331189 0.059490853 NA [4,] -0.0871190623 0.02070266 -0.012235307 -0.0187323295 -0.012554755 NA [5,] -0.0444281056 0.06921283 -0.009391861 0.0451844857 0.033782862 NA [6,] 0.0333368666 -0.17806726 -0.114781577 -0.0580650941 -0.017384705 NA [7,] 0.1947047560 -0.03284194 -0.053285742 -0.0600601821 0.110062607 NA [8,] -0.1333531209 -0.07394059 -0.065665784 0.0001369659 0.046805977 NA [9,] -0.0285168392 -0.02173060 -0.022534952 0.0122132432 0.013630321 NA [10,] -0.0363655656 -0.01554518 -0.022923176 0.0044255763 0.043903354 NA [11,] -0.0292629186 0.01931422 0.007300379 0.0680835041 -0.009433012 NA [12,] 0.0530894831 -0.08165220 0.016696122 0.1007039371 -0.123520788 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.057863608 0.013954869 0.0926796010 -0.011215411 -0.02755658 NA [2,] 0.068333463 0.129202683 0.0028683043 0.009836077 0.12360407 NA [3,] -0.098542379 -0.069863479 -0.0781083880 -0.020965448 -0.07204561 NA [4,] 0.042690957 0.048510170 0.0028434462 0.063916815 0.04633762 NA [5,] 0.077764972 -0.247280086 -0.1053897159 -0.103249580 -0.05116757 NA [6,] 0.161367889 0.145225318 0.0614958347 -0.001995088 0.12744731 NA [7,] -0.328057877 -0.041098645 -0.0123800416 0.060197148 -0.06325663 NA [8,] 0.104836282 0.052209983 0.0431308322 0.012076277 -0.03317566 NA [9,] -0.007848726 0.006185419 -0.0003882243 -0.007787667 0.03027303 NA [10,] 0.007102647 0.034859405 0.0302235549 0.063657928 -0.05333637 NA [11,] 0.082352402 -0.100966422 0.0093957430 0.032620433 -0.11408778 NA [12,] -0.105680899 0.051977375 -0.0130836691 -0.137260572 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/1fn731197799723.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/2ijy51197799723.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/3cv5n1197799723.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/4k4ok1197799723.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] [1,] -0.0525914154 -0.064113214 0.002233119 -0.01873233 -0.044428106 [2,] -0.0365566353 -0.056910146 0.011423316 -0.01873233 -0.009391861 [3,] -0.0296748247 -0.038636546 0.059490853 -0.01255476 0.033782862 [4,] 0.0009534617 -0.007602958 0.065873081 -0.01223531 0.045184486 [5,] 0.0036124527 0.063004776 0.090566136 -0.01223531 0.069212827 [,6] [,7] [,8] [,9] [,10] [1,] -0.17806726 -0.06006018 -0.1333531209 -0.02851684 -0.036365566 [2,] -0.11478158 -0.05328574 -0.0739405859 -0.02253495 -0.022923176 [3,] -0.05806509 -0.03284194 -0.0656657840 -0.02173060 -0.015545184 [4,] -0.01738471 0.11006261 0.0001369659 0.01221324 0.004425576 [5,] 0.03333687 0.19470476 0.0468059774 0.01363032 0.043903354 [,11] [,12] [1,] -0.029262919 -0.12352079 [2,] -0.009433012 -0.08165220 [3,] 0.007300379 0.01669612 [4,] 0.019314221 0.05308948 [5,] 0.019314221 0.10070394 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.056179365 -0.073476881 0.02101679 -0.017145535 -0.004780647 -0.12688548 [2,] -0.003170285 -0.003796211 0.09796492 -0.007963976 0.072346371 0.01075529 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.14826347 -0.11800880 -0.046283590 -0.034869743 -0.01301234 -0.07851201 [2,] 0.08257959 -0.01332277 0.002822384 0.003779376 0.02761310 0.11190426 $out [1] -0.08711906 0.02070266 0.06808350 $group [1] 4 4 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0525914154196951, -0.0365566352690836, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/597fc1197799723.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] [1,] -0.05786361 0.002868304 -0.07810839 0.04269096 -0.10538972 -0.001995088 [2,] -0.02755658 0.009836077 -0.07810839 0.04269096 -0.10538972 0.061495835 [3,] -0.01121541 0.068333463 -0.07204561 0.04633762 -0.10324958 0.127447312 [4,] 0.01395487 0.123604067 -0.06986348 0.04851017 -0.05116757 0.145225318 [5,] 0.01395487 0.129202683 -0.06986348 0.04851017 -0.05116757 0.161367889 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.06325663 -0.03317566 -0.0078487265 0.007102647 -0.114087776 -0.13726057 [2,] -0.06325663 0.01207628 -0.0077876669 0.007102647 -0.100966422 -0.12147074 [3,] -0.04109864 0.04313083 -0.0003882243 0.030223555 0.009395743 -0.05938228 [4,] -0.01238004 0.05220998 0.0061854191 0.034859405 0.032620433 0.01944685 [5,] 0.06019715 0.10483628 0.0061854191 0.063657928 0.082352402 0.05197738 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.04054730 -0.01205471 -0.07787144 0.04222578 -0.14156281 0.06828427 [2,] 0.01811647 0.14872164 -0.06621978 0.05044946 -0.06493635 0.18661035 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.077047914 0.01477246 -0.010261572 0.01061070 -0.0849964 -0.17070718 [2,] -0.005149376 0.07148921 0.009485123 0.04983641 0.1037879 0.05194261 $out [1] 0.092679601 -0.098542379 -0.020965448 0.002843446 0.063916815 [6] 0.077764972 -0.247280086 -0.328057877 0.030273033 -0.053336366 $group [1] 1 3 3 4 4 5 5 7 9 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.0578636081518286, -0.0275565790773451, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/60mqu1197799723.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,] -0.13335312 -0.17806726 -0.11478158 -0.060060182 -0.123520788 NA [2,] -0.05066913 -0.06326600 -0.04148028 -0.013167644 -0.026970670 NA [3,] -0.02888988 -0.02728627 -0.01738513 0.002922786 0.002098654 NA [4,] 0.02238009 0.02000844 0.01199825 0.028698864 0.045354666 NA [5,] 0.05308948 0.09056614 0.06587308 0.068083504 0.110062607 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.062208117 -0.06526830 -0.041777048 -0.01617281 -0.03088942 NA [2,] 0.004428360 0.01069576 0.007006789 0.02201838 0.03508673 NA $out [1] 0.1947048 0.1007039 $group [1] 1 4 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(-0.133353120942145, -0.0506691259993986, -0.0288898789030582, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7b7b81197799723.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,] -0.066992354 -0.06566578 -0.06608314 [2,] -0.022419576 -0.03573924 -0.02502907 [3,] -0.008162228 -0.01863789 -0.01176508 [4,] 0.015036238 0.01199825 0.01141846 [5,] 0.045917301 0.05949085 0.03864820 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -0.02524608 -0.040411285 -0.028389041 [2,] 0.00892162 0.003135498 0.004858883 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-0.0669923537264891, -0.0224195758438703, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1fn731197799723.ps tmp/1fn731197799723.png") > system("convert tmp/2ijy51197799723.ps tmp/2ijy51197799723.png") > system("convert tmp/3cv5n1197799723.ps tmp/3cv5n1197799723.png") > system("convert tmp/4k4ok1197799723.ps tmp/4k4ok1197799723.png") > system("convert tmp/597fc1197799723.ps tmp/597fc1197799723.png") > system("convert tmp/60mqu1197799723.ps tmp/60mqu1197799723.png") > system("convert tmp/7b7b81197799723.ps tmp/7b7b81197799723.png") > > > proc.time() user system elapsed 2.583 1.595 2.798