R version 2.8.0 (2008-10-20) Copyright (C) 2008 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(58608,46865,51378,46235,47206,45382,41227,33795,31295,42625,33625,21538,56421,53152,53536,52408,41454,38271,35306,26414,31917,38030,27534,18387,50556,43901,48572,43899,37532,40357,35489,29027,34485,42598,30306,26451,47460,50104,61465,53726,39477,43895,31481,29896,33842,39120,33702,25094,51442,45594,52518,48564,41745,49585,32747,33379,35645,37034,35681,20972,58552,54955,65540,51570,51145,46641,35704,33253,35193,41668,34865,21210,56126,49231,59723,48103,47472,50497,40059,34149,36860,46356,36577,23872) > 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] 84 > (np <- floor(n / par1)) [1] 7 > 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] 7 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 58608 56421 50556 47460 51442 58552 56126 NA [2,] 46865 53152 43901 50104 45594 54955 49231 NA [3,] 51378 53536 48572 61465 52518 65540 59723 NA [4,] 46235 52408 43899 53726 48564 51570 48103 NA [5,] 47206 41454 37532 39477 41745 51145 47472 NA [6,] 45382 38271 40357 43895 49585 46641 50497 NA [7,] 41227 35306 35489 31481 32747 35704 40059 NA [8,] 33795 26414 29027 29896 33379 33253 34149 NA [9,] 31295 31917 34485 33842 35645 35193 36860 NA [10,] 42625 38030 42598 39120 37034 41668 46356 NA [11,] 33625 27534 30306 33702 35681 34865 36577 NA [12,] 21538 18387 26451 25094 20972 21210 23872 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -11743 -3269 -6655 2644 -5848 -3597 -6895 NA [2,] 4513 384 4671 11361 6924 10585 10492 NA [3,] -5143 -1128 -4673 -7739 -3954 -13970 -11620 NA [4,] 971 -10954 -6367 -14249 -6819 -425 -631 NA [5,] -1824 -3183 2825 4418 7840 -4504 3025 NA [6,] -4155 -2965 -4868 -12414 -16838 -10937 -10438 NA [7,] -7432 -8892 -6462 -1585 632 -2451 -5910 NA [8,] -2500 5503 5458 3946 2266 1940 2711 NA [9,] 11330 6113 8113 5278 1389 6475 9496 NA [10,] -9000 -10496 -12292 -5418 -1353 -6803 -9779 NA [11,] -12087 -9147 -3855 -8608 -14709 -13655 -12705 NA [12,] 34883 32169 21009 26348 37580 34916 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/18ose1229702499.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/2oyjv1229702499.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/3djgi1229702499.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/48j651229702499.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] [,8] [,9] [,10] [1,] 47460.0 43901.0 48572 43899 37532.0 38271 31481.0 26414.0 31295.0 37034.0 [2,] 50999.0 46229.5 51948 47169 40465.5 42126 34026.5 29461.5 32879.5 38575.0 [3,] 56126.0 49231.0 53536 48564 41745.0 45382 35489.0 33253.0 34485.0 41668.0 [4,] 57486.5 51628.0 60594 51989 47339.0 48113 37881.5 33587.0 35419.0 42611.5 [5,] 58608.0 54955.0 65540 53726 51145.0 50497 41227.0 34149.0 36860.0 46356.0 [,11] [,12] [1,] 27534.0 18387 [2,] 31965.5 21091 [3,] 33702.0 21538 [4,] 35273.0 24483 [5,] 36577.0 26451 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 52251.77 46007.1 48372.75 45685.57 37640.26 41806.66 33186.86 30789.32 [2,] 60000.23 52454.9 58699.25 51442.43 45849.74 48957.34 37791.14 35716.68 [,9] [,10] [,11] [,12] [1,] 32968.45 39257.47 31726.81 19512.35 [2,] 36001.55 44078.53 35677.19 23563.65 $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(47460, 50999, 56126, 57486.5, 58608, 43901, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/512om1229702499.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] [,8] [,9] [1,] -11743 384.0 -13970.0 -14249.0 -4504.0 -16838.0 -8892 1940 1389.0 [2,] -6775 4592.0 -9679.5 -8886.5 -2503.5 -11675.5 -6947 2103 5695.5 [3,] -5848 6924.0 -5143.0 -6367.0 2825.0 -10438.0 -5910 2711 6475.0 [4,] -3433 10538.5 -4313.5 -528.0 3721.5 -4511.5 -2018 4702 8804.5 [5,] -3269 11361.0 -1128.0 971.0 7840.0 -2965.0 632 5503 11330.0 [,10] [,11] [,12] [1,] -12292.0 -14709.0 21009 [2,] -10137.5 -13180.0 26348 [3,] -9000.0 -12087.0 33526 [4,] -6110.5 -8877.5 34916 [5,] -1353.0 -3855.0 37580 $n [1] 7 7 7 7 7 7 7 7 7 7 7 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -7843.788 3372.846 -8347.489 -11358.561 -892.4696 -14716.225 -8853.519 [2,] -3852.212 10475.154 -1938.511 -1375.439 6542.4696 -6159.775 -2966.481 [,8] [,9] [,10] [,11] [,12] [1,] 1158.919 4618.355 -11404.86 -14656.384 27999.36 [2,] 4263.081 8331.645 -6595.14 -9517.616 39052.64 $out [1] 2644 -2500 $group [1] 1 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-11743, -6775, -5848, -3433, -3269, 384, 4592, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6o9rm1229702499.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] [,7] [,8] [1,] 21538.0 18387.0 26451.0 25094.0 20972.0 21210.0 23872.0 NA [2,] 33710.0 29725.5 32395.5 32591.5 34512.0 35029.0 36718.5 NA [3,] 44003.5 38150.5 38944.5 39298.5 39389.5 44154.5 46914.0 NA [4,] 47035.5 52780.0 43900.0 48782.0 49074.5 53262.5 49864.0 NA [5,] 58608.0 56421.0 50556.0 61465.0 52518.0 65540.0 59723.0 NA $n [1] 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 37925.65 27635.19 33697.22 31913.90 32747.45 35838.08 40918.25 NA [2,] 50081.35 48665.81 44191.78 46683.10 46031.55 52470.92 52909.75 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(21538, 33710, 44003.5, 47035.5, 58608, 18387, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7pw191229702499.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,] 22503.43 21538.0 22787.00 [2,] 33680.50 34093.5 33884.25 [3,] 42390.14 41706.5 42247.75 [4,] 49164.79 48897.5 49253.88 [5,] 56104.57 56126.0 56271.00 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 35327.66 34954.30 35237.56 [2,] 49452.63 48458.70 49257.94 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(22503.4285714286, 33680.5, 42390.1428571429, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/18ose1229702499.ps tmp/18ose1229702499.png") > system("convert tmp/2oyjv1229702499.ps tmp/2oyjv1229702499.png") > system("convert tmp/3djgi1229702499.ps tmp/3djgi1229702499.png") > system("convert tmp/48j651229702499.ps tmp/48j651229702499.png") > system("convert tmp/512om1229702499.ps tmp/512om1229702499.png") > system("convert tmp/6o9rm1229702499.ps tmp/6o9rm1229702499.png") > system("convert tmp/7pw191229702499.ps tmp/7pw191229702499.png") > > > proc.time() user system elapsed 1.280 1.001 2.421