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.962731884432673,-12.6229042845687,-12.807407054031,-44.5756517809941,11.4086452969893,-160.303335575101,59.9730763527649,115.020770711636,224.290066750386,-104.872804142528,65.9773085529351,-6.00240977340677,66.4229175840992,-10.5112513820128,0.402535477973239,139.222323833981,52.1176511285665,10.5109887854139,-32.2815302483359,-4.34430645804017,-43.1968456181945,12.4418030920839,-34.4910801271772,47.5772947428584,109.848265908168,18.7779315997154,-168.453088533592,-27.4972633420093,21.6321836630647,-41.8332911166137,35.8610639782723,148.187637967619,-42.610800908386,180.398079898019,-40.9330165975321,-14.7119326981197,-36.4403194267713,-56.4255293952952,141.88526662359,50.5357220177411,-116.269168630752,10.7174470868449,-86.824366354279,-120.290832475689,-30.5809853771756,-137.699165686378,-67.8021183013484,-32.6783266786708,57.9445668488474) > 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] 49 > (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] 5 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 0.9627319 66.4229176 109.84827 -36.44032 57.94457 [2,] -12.6229043 -10.5112514 18.77793 -56.42553 NA [3,] -12.8074071 0.4025355 -168.45309 141.88527 NA [4,] -44.5756518 139.2223238 -27.49726 50.53572 NA [5,] 11.4086453 52.1176511 21.63218 -116.26917 NA [6,] -160.3033356 10.5109888 -41.83329 10.71745 NA [7,] 59.9730764 -32.2815302 35.86106 -86.82437 NA [8,] 115.0207707 -4.3443065 148.18764 -120.29083 NA [9,] 224.2900668 -43.1968456 -42.61080 -30.58099 NA [10,] -104.8728041 12.4418031 180.39808 -137.69917 NA [11,] 65.9773086 -34.4910801 -40.93302 -67.80212 NA [12,] -6.0024098 47.5772947 -14.71193 -32.67833 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] -13.5856362 -76.93417 -91.07033 -19.98521 NA [2,] -0.1845028 10.91379 -187.23102 198.31080 NA [3,] -31.7682447 138.81979 140.95583 -91.34954 NA [4,] 55.9842971 -87.10467 49.12945 -166.80489 NA [5,] -171.7119809 -41.60666 -63.46547 126.98662 NA [6,] 220.2764119 -42.79252 77.69436 -97.54181 NA [7,] 55.0476944 27.93722 112.32657 -33.46647 NA [8,] 109.2692960 -38.85254 -190.79844 89.70985 NA [9,] -329.1628709 55.63865 223.00888 -107.11818 NA [10,] 170.8501127 -46.93288 -221.33110 69.89705 NA [11,] -71.9797183 82.06837 26.22108 35.12379 NA [12,] 72.4253274 62.27097 -21.72839 90.62289 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/1qwqx1260521618.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/2plwv1260521618.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/3aw5s1260521618.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/4aa3o1260521618.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,] -36.4403194 -56.42553 -168.453089 -44.57565 -116.26917 -160.30334 [2,] 0.9627319 -34.52422 -90.630248 -36.03646 -52.43026 -101.06831 [3,] 57.9445668 -11.56708 -6.202436 11.51923 16.52041 -15.66115 [4,] 66.4229176 4.13334 71.143901 94.87902 36.87492 10.61422 [5,] 109.8482659 18.77793 141.885267 139.22232 52.11765 10.71745 [,7] [,8] [,9] [,10] [,11] [,12] [1,] -86.824366 -120.29083 -43.19685 -137.69917 -67.80212 -32.67833 [2,] -59.552948 -62.31757 -42.90382 -121.28598 -54.36757 -23.69513 [3,] 1.789767 55.33823 -36.59589 -46.21550 -37.71205 -10.35717 [4,] 47.917070 131.60420 96.85454 96.41994 15.74311 20.78744 [5,] 59.973076 148.18764 224.29007 180.39808 65.97731 47.57729 $n [1] 5 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 11.69056 -42.10655 -134.0040 -91.9040 -54.03068 -103.89035 -83.11155 [2,] 104.19857 18.97239 121.5991 114.9425 87.07151 72.56805 86.69108 [,8] [,9] [,10] [,11] [,12] [1,] -97.85997 -147.00500 -218.2032 -93.09949 -45.49840 [2,] 208.53643 73.81321 125.7722 17.67539 24.78406 $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(-36.4403194267713, 0.962731884432673, 57.9445668488474, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/50w6o1260521618.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,] -91.07033 -187.231020 -91.34954 -166.80489 -171.71198 -97.54181 -33.466466 [2,] -84.00225 -93.707761 -61.55889 -126.95478 -117.58873 -70.16717 -2.764621 [3,] -48.45969 5.364642 53.52577 -18.98761 -52.53607 17.45092 41.492459 [4,] -16.78542 104.612291 139.88781 52.55687 42.68998 148.98538 83.687134 [5,] -13.58564 198.310796 140.95583 55.98430 126.98662 220.27641 112.326574 [,8] [,9] [,10] [,11] [,12] [1,] -190.79844 -329.16287 -221.33110 -71.97972 -21.72839 [2,] -114.82549 -218.14053 -134.13199 -22.87932 20.27129 [3,] 25.42865 -25.73977 11.48208 30.67244 67.34815 [4,] 99.48957 139.32376 120.37358 58.59608 81.52411 [5,] 109.26930 223.00888 170.85011 82.06837 90.62289 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -101.560984 -151.3082 -105.6171 -160.8018 -179.15625 -155.6796 -26.80443 [2,] 4.641605 162.0375 212.6687 122.8266 74.08411 190.5814 109.78935 [,8] [,9] [,10] [,11] [,12] [1,] -143.8802 -308.1366 -189.5773 -33.69313 18.95842 [2,] 194.7376 256.6570 212.5415 95.03800 115.73788 $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(-91.0703343084526, -84.0022516372823, -48.459689467318, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/678a81260521618.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,] -160.303336 -43.196846 -168.453089 -137.69917 57.94457 [2,] -28.691529 -21.396391 -41.383154 -101.54677 57.94457 [3,] -2.519839 5.456762 2.032999 -46.43292 57.94457 [4,] 62.975192 49.847473 72.854665 -9.93177 57.94457 [5,] 115.020771 139.222324 180.398080 50.53572 57.94457 $n [1] 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [1,] -44.32965 -27.03804 -50.07164 -88.219140 57.94457 [2,] 39.28997 37.95157 54.13764 -4.646709 57.94457 $out [1] 224.2901 141.8853 $group [1] 1 4 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(-160.303335575101, -28.6915294175125, -2.51983894448705, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7ikmc1260521618.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,] -45.227048 -46.215501 -30.444099 [2,] -13.814230 -26.128522 -20.946698 [3,] -6.797806 -8.279804 -5.357887 [4,] 28.198321 14.019822 12.420814 [5,] 39.747633 57.944567 44.990775 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] -25.96001 -26.59173 -20.577033 [2,] 12.36440 10.03213 9.861259 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(-45.227047704864, -13.8142300376205, -6.79780560171365, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1qwqx1260521618.ps tmp/1qwqx1260521618.png") > system("convert tmp/2plwv1260521618.ps tmp/2plwv1260521618.png") > system("convert tmp/3aw5s1260521618.ps tmp/3aw5s1260521618.png") > system("convert tmp/4aa3o1260521618.ps tmp/4aa3o1260521618.png") > system("convert tmp/50w6o1260521618.ps tmp/50w6o1260521618.png") > system("convert tmp/678a81260521618.ps tmp/678a81260521618.png") > system("convert tmp/7ikmc1260521618.ps tmp/7ikmc1260521618.png") > > > proc.time() user system elapsed 1.188 0.928 2.085