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.960413185401952,-0.257096857061657,-0.00305097423970006,-1.22060840651389,0.281147854452748,-0.837214034024459,2.99538578499307,2.01192824719042,-1.13142847782208,-4.41735107993375,-2.84326720390843,1.42420708592824,-6.4319528185145,-1.15134540051891,-2.31759658186013,7.19405393968334,-2.51152222562894,-5.05067246799101,0.633609505899342,-2.19833108044682,-5.61600895377663,4.06077142955234,3.81497929522652,-5.63333124192523,4.54262532082878,2.2869987279077,5.31788785818883,-1.57767876248737,-2.20767339276594,-3.03004636377187,2.4221089067681,-5.13003966404093,7.35432758766906,0.00333765818966027,-2.39180447559783,-0.536093770338058,4.30423414238618,7.75062996097202,5.5738788229018,3.94690741416824,1.63005802585319,5.87623150802847,-1.6770930063302,-3.51531169044285,2.03885369634053,-1.42127033457145,-0.340892797342981,-2.81624738305871) > 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.960413185 -6.4319528 4.542625321 4.3042341 NA [2,] -0.257096857 -1.1513454 2.286998728 7.7506300 NA [3,] -0.003050974 -2.3175966 5.317887858 5.5738788 NA [4,] -1.220608407 7.1940539 -1.577678762 3.9469074 NA [5,] 0.281147854 -2.5115222 -2.207673393 1.6300580 NA [6,] -0.837214034 -5.0506725 -3.030046364 5.8762315 NA [7,] 2.995385785 0.6336095 2.422108907 -1.6770930 NA [8,] 2.011928247 -2.1983311 -5.130039664 -3.5153117 NA [9,] -1.131428478 -5.6160090 7.354327588 2.0388537 NA [10,] -4.417351080 4.0607714 0.003337658 -1.4212703 NA [11,] -2.843267204 3.8149793 -2.391804476 -0.3408928 NA [12,] 1.424207086 -5.6333312 -0.536093770 -2.8162474 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 0.7033163 5.2806074 -2.2556266 3.446396 NA [2,] 0.2540459 -1.1662512 3.0308891 -2.176751 NA [3,] -1.2175574 9.5116505 -6.8955666 -1.626971 NA [4,] 1.5017563 -9.7055762 -0.6299946 -2.316849 NA [5,] -1.1183619 -2.5391502 -0.8223730 4.246173 NA [6,] 3.8325998 5.6842820 5.4521553 -7.553325 NA [7,] -0.9834575 -2.8319406 -7.5521486 -1.838219 NA [8,] -3.1433567 -3.4176779 12.4843673 5.554165 NA [9,] -3.2859226 9.6767804 -7.3509899 -3.460124 NA [10,] 1.5740839 -0.2457921 -2.3951421 1.080378 NA [11,] 4.2674743 -9.4483105 1.8557107 -2.475355 NA [12,] -7.8561599 10.1759566 4.8403279 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/1qg6t1259927838.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/25w1q1259927838.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/3modj1259927838.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/41tmy1259927839.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,] -6.431953 -1.1513454 -2.317597 -1.577679 -2.5115222 -5.050672 -1.6770930 [2,] -3.696183 -0.7042211 -1.160324 -1.399144 -2.3595978 -4.040359 -0.5217418 [3,] 1.671910 1.0149509 2.657418 1.363150 -0.9632628 -1.933630 1.5278592 [4,] 4.423430 5.0188143 5.445883 5.570481 0.9556029 2.519509 2.7087473 [5,] 4.542625 7.7506300 5.573879 7.194054 1.6300580 5.876232 2.9953858 [,8] [,9] [,10] [,11] [,12] [1,] -5.13003966 -5.6160090 -4.4173511 -2.843267 -5.6333312 [2,] -4.32267568 -3.3737187 -2.9193107 -2.617536 -4.2247893 [3,] -2.85682139 0.4537126 -0.7089663 -1.366349 -1.6761706 [4,] -0.09320142 4.6965906 2.0320545 1.737043 0.4440567 [5,] 2.01192825 7.3543276 4.0607714 3.814979 1.4242071 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -4.742584 -3.506247 -2.561485 -4.142854 -3.582271 -7.115926 -1.024227 [2,] 8.086405 5.536149 7.876322 6.869153 1.655746 3.248666 4.079946 [,8] [,9] [,10] [,11] [,12] [1,] -6.1981061 -5.921832 -4.620545 -4.806466 -5.364559 [2,] 0.4844633 6.829257 3.202612 2.073769 2.012218 $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(-6.4319528185145, -3.69618300195823, 1.67191047849211, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/54nwv1259927839.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,] -2.2556266 -2.1767511 -6.895567 -9.7055762 -2.5391502 -7.553325 -7.5521486 [2,] -0.7761551 -1.6715012 -4.261269 -6.0112128 -1.8287561 -1.860362 -5.1920446 [3,] 2.0748561 -0.4561026 -1.422264 -1.4734220 -0.9703674 4.642378 -2.3350796 [4,] 4.3635016 1.6424675 4.147047 0.4358808 1.7119003 5.568219 -1.4108381 [5,] 5.2806074 3.0308891 9.511651 1.5017563 4.2461735 5.684282 -0.9834575 [,8] [,9] [,10] [,11] [,12] [1,] -3.417678 -7.350990 -2.3951421 -9.4483105 -7.856160 [2,] -3.280517 -5.405557 -1.3204671 -5.9618326 -1.507916 [3,] 1.205404 -3.373023 0.4172927 -0.3098219 4.840328 [4,] 9.019266 3.195429 1.3272307 3.0615925 7.508142 [5,] 12.484367 9.676780 1.5740839 4.2674743 10.175957 $n [1] 4 4 4 4 4 4 4 4 4 4 4 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.985473 -3.074138 -8.064834 -6.566626 -3.767486 -1.226201 -5.3222327 [2,] 6.135185 2.161933 5.220305 3.619782 1.826751 10.510957 0.6520735 [,8] [,9] [,10] [,11] [,12] [1,] -8.511425 -10.167802 -1.674389 -7.438328 -3.384241 [2,] 10.922233 3.421756 2.508974 6.818684 13.064897 $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(-2.25562659292108, -0.776155132290392, 2.07485607346307, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6sbgi1259927839.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,] -2.8432672 -6.431953 -5.1300397 -3.515312 NA [2,] -1.1760184 -5.333341 -2.2997389 -1.549182 NA [3,] -0.5471554 -2.257964 -0.2663781 1.834456 NA [4,] 0.8526775 2.224294 3.4823671 4.939056 NA [5,] 2.9953858 7.194054 7.3543276 7.750630 NA $n [1] 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [1,] -1.4724573 -5.705052 -2.903635 -1.124873 NA [2,] 0.3781464 1.189124 2.370879 4.793785 NA $out [1] -4.417351 $group [1] 1 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(-2.84326720390843, -1.17601844216798, -0.547155445543058, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7savx1259927839.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,] -2.20793855 -2.8568214 -2.532379966 [2,] -0.73121139 -1.5212596 -1.125162618 [3,] -0.03831147 -0.1276269 -0.009361462 [4,] 1.58958567 1.4455044 1.448402387 [5,] 2.15729661 2.6574184 2.400099112 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -1.096843 -1.480788 -1.183182 [2,] 1.020220 1.225534 1.164459 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-2.20793854693505, -0.731211386980976, -0.0383114652905266, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qg6t1259927838.ps tmp/1qg6t1259927838.png") > system("convert tmp/25w1q1259927838.ps tmp/25w1q1259927838.png") > system("convert tmp/3modj1259927838.ps tmp/3modj1259927838.png") > system("convert tmp/41tmy1259927839.ps tmp/41tmy1259927839.png") > system("convert tmp/54nwv1259927839.ps tmp/54nwv1259927839.png") > system("convert tmp/6sbgi1259927839.ps tmp/6sbgi1259927839.png") > system("convert tmp/7savx1259927839.ps tmp/7savx1259927839.png") > > > proc.time() user system elapsed 1.194 0.926 1.463