R version 2.10.1 (2009-12-14) 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(25204,24977,24320,22680,22052,21467,21383,21777,21928,21814,22937,23595,20830,19650,19195,19644,18483,18079,19178,18391,18441,18584,20108,20148,19394,17745,17696,17032,16438,15683,15594,15713,15937,16171,15928,16348,15579,15305,15648,14954,15137,15839,16050,15168,17064,16005,14886,14931,14544,13812,13031,12574,11964,11451,11346,11353,10702,10646,10556,10463,10407,10625,10872,10805,10653,10574,10431,10383,10296,10872,10635,10297,10570) > 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] 73 > (np <- floor(n / par1)) [1] 6 > 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 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 25204 20830 19394 15579 14544 10407 10570 [2,] 24977 19650 17745 15305 13812 10625 NA [3,] 24320 19195 17696 15648 13031 10872 NA [4,] 22680 19644 17032 14954 12574 10805 NA [5,] 22052 18483 16438 15137 11964 10653 NA [6,] 21467 18079 15683 15839 11451 10574 NA [7,] 21383 19178 15594 16050 11346 10431 NA [8,] 21777 18391 15713 15168 11353 10383 NA [9,] 21928 18441 15937 17064 10702 10296 NA [10,] 21814 18584 16171 16005 10646 10872 NA [11,] 22937 20108 15928 14886 10556 10635 NA [12,] 23595 20148 16348 14931 10463 10297 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -227 -1180 -1649 -274 -732 218 NA [2,] -657 -455 -49 343 -781 247 NA [3,] -1640 449 -664 -694 -457 -67 NA [4,] -628 -1161 -594 183 -610 -152 NA [5,] -585 -404 -755 702 -513 -79 NA [6,] -84 1099 -89 211 -105 -143 NA [7,] 394 -787 119 -882 7 -48 NA [8,] 151 50 224 1896 -651 -87 NA [9,] -114 143 234 -1059 -56 576 NA [10,] 1123 1524 -243 -1119 -90 -237 NA [11,] 658 40 420 45 -93 -338 NA [12,] -2765 -754 -769 -387 -56 273 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/rcomp/tmp/1dily1271876978.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/rcomp/tmp/2dily1271876978.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/rcomp/tmp/3o9311271876978.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/rcomp/tmp/4o9311271876978.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] [,11] [1,] 10407 10625 10872 10805 10653.0 10574 10431 10383.0 10296.0 10646 10556 [2,] 12557 13812 13031 12574 11964.0 11451 11346 11353.0 10702.0 10872 10635 [3,] 15579 16525 16672 15993 15787.5 15761 15822 15440.5 16500.5 16088 15407 [4,] 20112 19650 19195 19644 18483.0 18079 19178 18391.0 18441.0 18584 20108 [5,] 25204 24977 24320 22680 22052.0 21467 21383 21777.0 21928.0 21814 22937 [,12] [1,] 10297.0 [2,] 10463.0 [3,] 15639.5 [4,] 20148.0 [5,] 23595.0 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11067.28 12759.30 12696.02 11432.62 11582.53 11485.73 10770.11 10900.76 [2,] 20090.72 20290.70 20647.98 20553.38 19992.47 20036.27 20873.89 19980.24 [,9] [,10] [,11] [,12] [1,] 11508.60 11113.51 9296.609 9392.362 [2,] 21492.40 21062.49 21517.391 21886.638 $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(10407, 12557, 15579, 20112, 25204, 10625, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5h0241271876978.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] [,10] [,11] [1,] -1649 -781 -694.0 -1161 -755.0 -143.0 -882.0 -87.0 -114.0 -1119.0 -338.0 [2,] -1180 -657 -694.0 -628 -585.0 -105.0 -787.0 -87.0 -114.0 -243.0 -93.0 [3,] -503 -252 -560.5 -602 -458.5 -86.5 -20.5 100.5 43.5 -163.5 42.5 [4,] -227 247 -67.0 -152 -79.0 211.0 119.0 224.0 234.0 1123.0 420.0 [5,] 218 343 449.0 183 -79.0 211.0 394.0 224.0 576.0 1524.0 658.0 [,12] [1,] -769.0 [2,] -769.0 [3,] -570.5 [4,] -56.0 [5,] 273.0 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1117.7158 -835.1092 -964.9353 -909.0354 -784.8863 -290.3302 -604.8993 [2,] 111.7158 331.1092 -156.0647 -294.9646 -132.1137 117.3302 563.8993 [,8] [,9] [,10] [,11] [,12] [1,] -100.1050 -180.9712 -1044.6141 -288.4016 -1030.4080 [2,] 301.1050 267.9712 717.6141 373.4016 -110.5920 $out [1] -1640 702 1099 1896 -651 -1059 -2765 $group [1] 3 5 6 8 8 9 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1649, -1180, -503, -227, 218, -781, -657, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6h0241271876978.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] [1,] 21383.0 18079.0 15594.0 14886.0 10463.0 10296.0 10570 [2,] 21795.5 18462.0 15820.5 15045.5 10674.0 10395.0 10570 [3,] 22366.0 19186.5 16259.5 15442.0 11402.0 10599.5 10570 [4,] 23957.5 19879.0 17364.0 15922.0 12802.5 10729.0 10570 [5,] 25204.0 20830.0 19394.0 17064.0 14544.0 10872.0 10570 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 21379.90 18540.20 15555.5 15042.22 10431.18 10447.16 10570 [2,] 23352.10 19832.80 16963.5 15841.78 12372.82 10751.84 10570 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(21383, 21795.5, 22366, 23957.5, 25204, 18079, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7h0241271876978.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,] 15464.17 15407.00 15014.00 [2,] 15672.83 15609.25 15060.88 [3,] 15814.75 15804.75 15384.69 [4,] 16464.18 16294.25 16166.38 [5,] 17019.00 16672.00 16679.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 15453.81 15492.32 14880.46 [2,] 16175.69 16117.18 15888.91 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(15464.1666666667, 15672.8333333333, 15814.75, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1dily1271876978.ps tmp/1dily1271876978.png",intern=TRUE)) character(0) > try(system("convert tmp/2dily1271876978.ps tmp/2dily1271876978.png",intern=TRUE)) character(0) > try(system("convert tmp/3o9311271876978.ps tmp/3o9311271876978.png",intern=TRUE)) character(0) > try(system("convert tmp/4o9311271876978.ps tmp/4o9311271876978.png",intern=TRUE)) character(0) > try(system("convert tmp/5h0241271876978.ps tmp/5h0241271876978.png",intern=TRUE)) character(0) > try(system("convert tmp/6h0241271876978.ps tmp/6h0241271876978.png",intern=TRUE)) character(0) > try(system("convert tmp/7h0241271876978.ps tmp/7h0241271876978.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.460 1.440 2.815