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(-0.0352348963249683,-0.0996886642707601,0.258351557360083,0.132707026411622,0.209190613791858,0.00765440528592697,0.364638644454261,-0.404729821174493,0.208323526616788,-0.228318339348579,0.0846424177144565,-0.108655058648595,0.00746541367547315,0.229284741496672,0.0735453904039185,-0.238534916960685,0.0362894953902089,0.163357762754455,0.141878886579970,-0.18679545624252,-0.151992074152852,-0.126522100160736,0.291127512736771,0.111350857781979,-0.375333748364419,0.0586735493662476,-0.00774453175246062,-0.201225232092894,0.0544700341223013,0.462862138244245,-0.483936137034753,0.230680122542856,-0.122800122937162,-0.00974091735299254,-0.0974876787295767,-0.0918746552479597,0.083000669337947,-0.338942397572222,-0.57777344126642,-0.239078710664643,-0.373618252683224,-0.188541466996174,0.200768061115737,0.00379888006595585,-0.155150788501183,0.0281973237494739,0.320159473131222,0.130359972235699) > 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] 48 > (np <- floor(n / par1)) [1] 4 > 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] 4 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] -0.035234896 0.007465414 -0.375333748 0.08300067 NA [2,] -0.099688664 0.229284741 0.058673549 -0.33894240 NA [3,] 0.258351557 0.073545390 -0.007744532 -0.57777344 NA [4,] 0.132707026 -0.238534917 -0.201225232 -0.23907871 NA [5,] 0.209190614 0.036289495 0.054470034 -0.37361825 NA [6,] 0.007654405 0.163357763 0.462862138 -0.18854147 NA [7,] 0.364638644 0.141878887 -0.483936137 0.20076806 NA [8,] -0.404729821 -0.186795456 0.230680123 0.00379888 NA [9,] 0.208323527 -0.151992074 -0.122800123 -0.15515079 NA [10,] -0.228318339 -0.126522100 -0.009740917 0.02819732 NA [11,] 0.084642418 0.291127513 -0.097487679 0.32015947 NA [12,] -0.108655059 0.111350858 -0.091874655 0.13035997 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -0.06445377 0.22181933 0.434007298 -0.4219431 NA [2,] 0.35804022 -0.15573935 -0.066418081 -0.2388310 NA [3,] -0.12564453 -0.31208031 -0.193480700 0.3386947 NA [4,] 0.07648359 0.27482441 0.255695266 -0.1345395 NA [5,] -0.20153621 0.12706827 0.408392104 0.1850768 NA [6,] 0.35698424 -0.02147888 -0.946798275 0.3893095 NA [7,] -0.76936847 -0.32867434 0.714616260 -0.1969692 NA [8,] 0.61305335 0.03480338 -0.353480245 -0.1589497 NA [9,] -0.43664187 0.02546997 0.113059206 0.1833481 NA [10,] 0.31296076 0.41764961 -0.087746761 0.2919621 NA [11,] -0.19329748 -0.17977665 0.005613023 -0.1897995 NA [12,] 0.11612047 -0.48668461 0.174875325 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/1x0yu1259750764.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/2qyjv1259750764.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/397911259750764.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/4949s1259750764.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,] -0.37533375 -0.33894240 -0.57777344 -0.2390787 -0.37361825 -0.18854147 [2,] -0.20528432 -0.21931553 -0.29275899 -0.2388068 -0.16866438 -0.09044353 [3,] -0.01388474 -0.02050756 0.03290043 -0.2198801 0.04537976 0.08550608 [4,] 0.04523304 0.14397915 0.16594847 -0.0342591 0.13183032 0.31310995 [5,] 0.08300067 0.22928474 0.25835156 0.1327070 0.20919061 0.46286214 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.4839361 -0.40472982 -0.1551508 -0.228318339 -0.09748768 -0.108655059 [2,] -0.1710286 -0.29576264 -0.1535714 -0.177420220 -0.00642263 -0.100264857 [3,] 0.1713235 -0.09149829 -0.1373961 -0.068131509 0.18788497 0.009738101 [4,] 0.2827034 0.11723950 0.0427617 0.009228203 0.30564349 0.120855415 [5,] 0.3646386 0.23068012 0.2083235 0.028197324 0.32015947 0.130359972 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.2117935 -0.3075104 -0.3294785 -0.38147277 -0.1920111 -0.2333012 [2,] 0.1840240 0.2664952 0.3952793 -0.05828738 0.2827706 0.4043133 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.1871248 -0.4177700 -0.29249927 -0.21558376 -0.05864727 -0.1649469 [2,] 0.5297717 0.2347734 0.01770708 0.07932075 0.43441720 0.1844231 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.375333748364419, -0.205284322344694, -0.0138847413247476, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5sgbd1259750764.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.42194307 -0.2388310 -0.3120803 -0.13453954 -0.20153621 -0.9467983 [2,] -0.24319842 -0.1972852 -0.2527805 -0.02902798 -0.03723397 -0.4841386 [3,] 0.07868278 -0.1110787 -0.1595626 0.16608943 0.15607253 0.1677527 [4,] 0.32791331 0.1458111 0.1065251 0.26525984 0.29673444 0.3731469 [5,] 0.43400730 0.3580402 0.3386947 0.27482441 0.40839210 0.3893095 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.7693685 -0.35348025 -0.43664187 -0.08774676 -0.193297476 -0.4866846 [2,] -0.5490214 -0.25621496 -0.20558595 0.10210769 -0.191548489 -0.1852821 [3,] -0.2628218 -0.06207314 0.06926459 0.30246145 -0.184788078 0.1161205 [4,] 0.2588235 0.32392836 0.14820366 0.36530518 -0.087081816 0.1454979 [5,] 0.7146163 0.61305335 0.18334811 0.41764961 0.005613023 0.1748753 $n [1] 4 4 4 4 4 4 4 4 4 4 4 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -0.3724955 -0.3821248 -0.4434140 -0.06639795 -0.1077625 -0.5095028 [2,] 0.5298610 0.1599673 0.1242888 0.39857680 0.4199076 0.8450082 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -0.9010193 -0.5203864 -0.2102292 0.09453544 -0.2673167 -0.1856215 [2,] 0.3753757 0.3962401 0.3487584 0.51038747 -0.1022594 0.4178624 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-0.421943066910169, -0.243198417427980, 0.0786827799377035, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/606vw1259750764.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] [1,] -0.40472982 -0.23853492 -0.48393614 -0.57777344 NA [2,] -0.10417186 -0.13925709 -0.16201268 -0.28901055 NA [3,] 0.04614841 0.05491744 -0.05080779 -0.07567595 NA [4,] 0.20875707 0.15261832 0.05657179 0.10668032 NA [5,] 0.36463864 0.29112751 0.23068012 0.32015947 NA $n [1] 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [1,] -0.09658057 -0.07820889 -0.15050563 -0.2561532 NA [2,] 0.18887740 0.18804378 0.04889006 0.1048013 NA $out [1] 0.4628621 $group [1] 3 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(-0.404729821174493, -0.104171861459678, 0.0461484115001917, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7gs1d1259750764.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.13653296 -0.21988007 -0.17820652 [2,] -0.08206082 -0.07981490 -0.08324684 [3,] -0.04653653 -0.00207332 -0.02217014 [4,] 0.03306632 0.06544292 0.05595051 [5,] 0.14961043 0.18788497 0.16874770 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -0.099046793 -0.06832639 -0.08565899 [2,] 0.005973735 0.06417975 0.04131870 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-0.13653295832665, -0.0820608243486001, -0.0465365287443089, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1x0yu1259750764.ps tmp/1x0yu1259750764.png") > system("convert tmp/2qyjv1259750764.ps tmp/2qyjv1259750764.png") > system("convert tmp/397911259750764.ps tmp/397911259750764.png") > system("convert tmp/4949s1259750764.ps tmp/4949s1259750764.png") > system("convert tmp/5sgbd1259750764.ps tmp/5sgbd1259750764.png") > system("convert tmp/606vw1259750764.ps tmp/606vw1259750764.png") > system("convert tmp/7gs1d1259750764.ps tmp/7gs1d1259750764.png") > > > proc.time() user system elapsed 1.199 0.945 1.529