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(5221.3,5115.9,5107.4,5202.1,5307.5,5266.1,5329.8,5263.4,5177.1,5204.9,5185.2,5189.8,5253.8,5372.3,5478.4,5590.5,5699.8,5797.9,5854.3,5902.4,5956.9,6007.8,6101.7,6148.6,6207.4,6232,6291.7,6323.4,6365,6435,6493.4,6606.8,6639.1,6723.5,6759.4,6848.6,6918.1,6963.5,7013.1,7030.9,7112.1,7130.3,7130.8,7076.9,7040.8,7086.5,7120.7,7154.1,7228.2,7297.9,7369.5,7450.7,7459.7,7497.5,7536,7637.4,7715.1,7815.7,7859.5,7951.6,7973.7,7988,8053.1,8112,8169.2,8303.1,8372.7,8470.6,8536.1,8665.8,8773.7,8838.4,8936.2,8995.3,9098.9,9237.1,9315.5,9392.6,9502.2,9671.1,9695.6,9847.9,9836.6,9887.7,9875.6,9905.9,9871.1,9910,9977.3,10031.6,10090.7,10095.8,10126,10212.7,10398.7,10467,10543.6,10634.2,10728.7,10796.4,10875.8,10946.1,11050,11086.1,11217.3,11291.7,11314.1,11356.4,11357.8,11491.4,11625.7,11620.7,11646,11700.6) > 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] 114 > (np <- floor(n / par1)) [1] 9 > 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] 10 10 10 10 10 10 9 9 9 9 9 9 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 5221.3 5253.8 6207.4 6918.1 7228.2 7973.7 8936.2 9875.6 10543.6 11357.8 [2,] 5115.9 5372.3 6232.0 6963.5 7297.9 7988.0 8995.3 9905.9 10634.2 11491.4 [3,] 5107.4 5478.4 6291.7 7013.1 7369.5 8053.1 9098.9 9871.1 10728.7 11625.7 [4,] 5202.1 5590.5 6323.4 7030.9 7450.7 8112.0 9237.1 9910.0 10796.4 11620.7 [5,] 5307.5 5699.8 6365.0 7112.1 7459.7 8169.2 9315.5 9977.3 10875.8 11646.0 [6,] 5266.1 5797.9 6435.0 7130.3 7497.5 8303.1 9392.6 10031.6 10946.1 11700.6 [7,] 5329.8 5854.3 6493.4 7130.8 7536.0 8372.7 9502.2 10090.7 11050.0 NA [8,] 5263.4 5902.4 6606.8 7076.9 7637.4 8470.6 9671.1 10095.8 11086.1 NA [9,] 5177.1 5956.9 6639.1 7040.8 7715.1 8536.1 9695.6 10126.0 11217.3 NA [10,] 5204.9 6007.8 6723.5 7086.5 7815.7 8665.8 9847.9 10212.7 11291.7 NA [11,] 5185.2 6101.7 6759.4 7120.7 7859.5 8773.7 9836.6 10398.7 11314.1 NA [12,] 5189.8 6148.6 6848.6 7154.1 7951.6 8838.4 9887.7 10467.0 11356.4 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] -105.4 118.5 24.6 45.4 69.7 14.3 59.1 30.3 90.6 133.6 [2,] -8.5 106.1 59.7 49.6 71.6 65.1 103.6 -34.8 94.5 134.3 [3,] 94.7 112.1 31.7 17.8 81.2 58.9 138.2 38.9 67.7 -5.0 [4,] 105.4 109.3 41.6 81.2 9.0 57.2 78.4 67.3 79.4 25.3 [5,] -41.4 98.1 70.0 18.2 37.8 133.9 77.1 54.3 70.3 54.6 [6,] 63.7 56.4 58.4 0.5 38.5 69.6 109.6 59.1 103.9 NA [7,] -66.4 48.1 113.4 -53.9 101.4 97.9 168.9 5.1 36.1 NA [8,] -86.3 54.5 32.3 -36.1 77.7 65.5 24.5 30.2 131.2 NA [9,] 27.8 50.9 84.4 45.7 100.6 129.7 152.3 86.7 74.4 NA [10,] -19.7 93.9 35.9 34.2 43.8 107.9 -11.3 186.0 22.4 NA [11,] 4.6 46.9 89.2 33.4 92.1 64.7 51.1 68.3 42.3 NA [12,] 64.0 58.8 69.5 74.1 22.1 97.8 -12.1 76.6 1.4 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/1jmkl1272370396.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/2jmkl1272370396.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/3jmkl1272370396.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/4ue161272370396.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] [1,] 5221.30 5115.90 5107.4 5202.10 5307.50 5266.1 5329.8 5263.4 [2,] 6207.40 6232.00 6291.7 6323.40 6365.00 6435.0 6493.4 6606.8 [3,] 7600.95 7642.95 7711.3 7781.35 7814.45 7900.3 7536.0 7637.4 [4,] 9875.60 9905.90 9871.1 9910.00 9977.30 10031.6 9502.2 9671.1 [5,] 11357.80 11491.40 11625.7 11620.70 11646.00 11700.6 11050.0 11086.1 [,9] [,10] [,11] [,12] [1,] 5177.1 5204.9 5185.2 5189.8 [2,] 6639.1 6723.5 6759.4 6848.6 [3,] 7715.1 7815.7 7859.5 7951.6 [4,] 9695.6 9847.9 9836.6 9887.7 [5,] 11217.3 11291.7 11314.1 11356.4 $n [1] 10 10 10 10 10 10 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5768.171 5807.323 5922.889 5989.342 6009.601 6103.295 5951.365 6023.535 [2,] 9433.729 9478.577 9499.711 9573.358 9619.299 9697.305 9120.635 9251.265 [,9] [,10] [,11] [,12] [1,] 6105.343 6170.183 6238.841 6351.007 [2,] 9324.857 9461.217 9480.159 9552.193 $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(5221.3, 6207.4, 7600.95, 9875.6, 11357.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5ue161272370396.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] [,12] [1,] 14.30 -8.50 -5.0 9.00 18.2 38.5 -66.4 -36.1 27.8 -19.7 4.6 -12.1 [2,] 24.60 49.60 31.7 41.60 37.8 56.4 5.1 24.5 50.9 22.4 42.3 22.1 [3,] 52.25 68.35 63.3 72.85 62.3 59.1 48.1 32.3 84.4 35.9 51.1 64.0 [4,] 90.60 103.60 94.7 81.20 77.1 69.6 101.4 65.5 100.6 93.9 68.3 74.1 [5,] 133.60 134.30 138.2 109.30 133.9 69.6 168.9 77.7 152.3 186.0 92.1 97.8 $n [1] 10 10 10 10 10 9 9 9 9 9 9 9 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19.27377 41.36945 31.82269 53.06426 42.66415 52.148 -2.618 10.70667 [2,] 85.22623 95.33055 94.77731 92.63574 81.93585 66.052 98.818 53.89333 [,9] [,10] [,11] [,12] [1,] 58.22467 -1.756667 37.40667 36.61333 [2,] 110.57533 73.556667 64.79333 91.38667 $out [1] -105.4 -34.8 -41.4 0.5 109.6 103.9 -86.3 131.2 $group [1] 1 2 5 6 6 6 8 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(14.3000000000002, 24.6000000000004, 52.2499999999991, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6ue161272370396.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] [,9] [1,] 5107.40 5253.80 6207.40 6918.1 7228.20 7973.70 8936.2 9871.10 10543.60 [2,] 5181.15 5534.45 6307.55 7022.0 7410.10 8082.55 9168.0 9907.95 10762.55 [3,] 5203.50 5826.10 6464.20 7081.7 7516.75 8337.90 9447.4 10061.15 10998.05 [4,] 5264.75 5982.35 6681.30 7125.5 7765.40 8600.95 9766.1 10169.35 11254.50 [5,] 5329.80 6148.60 6848.60 7154.1 7951.60 8838.40 9887.7 10467.00 11356.40 [,10] [1,] 11357.8 [2,] 11491.4 [3,] 11623.2 [4,] 11646.0 [5,] 11700.6 $n [1] 12 12 12 12 12 12 12 12 12 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5165.369 5621.81 6293.73 7034.493 7354.695 8101.454 9174.603 9941.924 [2,] 5241.631 6030.39 6634.67 7128.907 7678.805 8574.346 9720.197 10180.376 [,9] [,10] [1,] 10773.67 11523.48 [2,] 11222.43 11722.92 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" NA Warning message: In bxp(list(stats = c(5107.4, 5181.15, 5203.5, 5264.75, 5329.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/745091272370396.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,] 7928.878 7536.000 7997.800 [2,] 7989.292 7640.175 8060.806 [3,] 8079.463 7748.225 8153.150 [4,] 8171.373 7837.600 8263.019 [5,] 8250.080 7951.600 8368.150 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 7996.415 7658.178 8060.92 [2,] 8162.511 7838.272 8245.38 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(7928.87777777778, 7989.29222222222, 8079.46333333333, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1jmkl1272370396.ps tmp/1jmkl1272370396.png",intern=TRUE)) character(0) > try(system("convert tmp/2jmkl1272370396.ps tmp/2jmkl1272370396.png",intern=TRUE)) character(0) > try(system("convert tmp/3jmkl1272370396.ps tmp/3jmkl1272370396.png",intern=TRUE)) character(0) > try(system("convert tmp/4ue161272370396.ps tmp/4ue161272370396.png",intern=TRUE)) character(0) > try(system("convert tmp/5ue161272370396.ps tmp/5ue161272370396.png",intern=TRUE)) character(0) > try(system("convert tmp/6ue161272370396.ps tmp/6ue161272370396.png",intern=TRUE)) character(0) > try(system("convert tmp/745091272370396.ps tmp/745091272370396.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.202 0.944 2.641