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 = '4' > #'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] 28 > 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] 29 29 28 28 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 5221.3 5307.5 5177.1 5253.8 5699.8 5956.9 6207.4 6365.0 6639.1 6918.1 [2,] 5115.9 5266.1 5204.9 5372.3 5797.9 6007.8 6232.0 6435.0 6723.5 6963.5 [3,] 5107.4 5329.8 5185.2 5478.4 5854.3 6101.7 6291.7 6493.4 6759.4 7013.1 [4,] 5202.1 5263.4 5189.8 5590.5 5902.4 6148.6 6323.4 6606.8 6848.6 7030.9 [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [,19] [,20] [1,] 7112.1 7040.8 7228.2 7459.7 7715.1 7973.7 8169.2 8536.1 8936.2 9315.5 [2,] 7130.3 7086.5 7297.9 7497.5 7815.7 7988.0 8303.1 8665.8 8995.3 9392.6 [3,] 7130.8 7120.7 7369.5 7536.0 7859.5 8053.1 8372.7 8773.7 9098.9 9502.2 [4,] 7076.9 7154.1 7450.7 7637.4 7951.6 8112.0 8470.6 8838.4 9237.1 9671.1 [,21] [,22] [,23] [,24] [,25] [,26] [,27] [,28] [,29] [1,] 9695.6 9875.6 9977.3 10126.0 10543.6 10875.8 11217.3 11357.8 11646.0 [2,] 9847.9 9905.9 10031.6 10212.7 10634.2 10946.1 11291.7 11491.4 11700.6 [3,] 9836.6 9871.1 10090.7 10398.7 10728.7 11050.0 11314.1 11625.7 NA [4,] 9887.7 9910.0 10095.8 10467.0 10796.4 11086.1 11356.4 11620.7 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [1,] -105.4 -41.4 27.8 118.5 98.1 50.9 24.6 70.0 84.4 45.4 18.2 45.7 69.7 [2,] -8.5 63.7 -19.7 106.1 56.4 93.9 59.7 58.4 35.9 49.6 0.5 34.2 71.6 [3,] 94.7 -66.4 4.6 112.1 48.1 46.9 31.7 113.4 89.2 17.8 -53.9 33.4 81.2 [4,] 105.4 -86.3 64.0 109.3 54.5 58.8 41.6 32.3 69.5 81.2 -36.1 74.1 9.0 [,14] [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25] [1,] 37.8 100.6 14.3 133.9 129.7 59.1 77.1 152.3 30.3 54.3 86.7 90.6 [2,] 38.5 43.8 65.1 69.6 107.9 103.6 109.6 -11.3 -34.8 59.1 186.0 94.5 [3,] 101.4 92.1 58.9 97.9 64.7 138.2 168.9 51.1 38.9 5.1 68.3 67.7 [4,] 77.7 22.1 57.2 65.5 97.8 78.4 24.5 -12.1 67.3 30.2 76.6 79.4 [,26] [,27] [,28] [,29] [1,] 70.3 74.4 133.6 54.6 [2,] 103.9 22.4 134.3 NA [3,] 36.1 42.3 -5.0 NA [4,] 131.2 1.4 25.3 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/1i6ey1275564686.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/2sfdj1275564686.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/3sfdj1275564686.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/4sfdj1275564686.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] [1,] 5177.1 5115.9 5107.40 5189.80 [2,] 6365.0 6435.0 6392.55 6465.10 [3,] 7715.1 7815.7 7697.75 7794.50 [4,] 9875.6 9905.9 9853.85 9898.85 [5,] 11646.0 11700.6 11625.70 11620.70 $n [1] 29 29 28 28 $conf [,1] [,2] [,3] [,4] [1,] 6685.095 6797.343 6664.234 6769.21 [2,] 8745.105 8834.057 8731.266 8819.79 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lpcl1275564686.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] [1,] -41.4 -34.80 -53.90 -36.10 [2,] 37.8 35.05 32.55 24.90 [3,] 69.7 59.40 55.00 61.40 [4,] 90.6 99.05 93.40 78.05 [5,] 152.3 186.00 168.90 131.20 $n [1] 29 28 28 28 $conf [,1] [,2] [,3] [,4] [1,] 54.20855 40.29012 36.83068 45.52984 [2,] 85.19145 78.50988 73.16932 77.27016 $out [1] -105.4 -66.4 -86.3 $group [1] 1 3 4 $names [1] "1" "2" "3" "4" > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6lpcl1275564686.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 5263.40 5177.10 5253.80 5699.80 5956.90 6207.40 6365.0 6639.10 [2,] 5111.65 5264.75 5181.15 5313.05 5748.85 5982.35 6219.70 6400.0 6681.30 [3,] 5159.00 5286.80 5187.50 5425.35 5826.10 6054.75 6261.85 6464.2 6741.45 [4,] 5211.70 5318.65 5197.35 5534.45 5878.35 6125.15 6307.55 6550.1 6804.00 [5,] 5221.30 5329.80 5204.90 5590.50 5902.40 6148.60 6323.40 6606.8 6848.60 [,10] [,11] [,12] [,13] [,14] [,15] [,16] [,17] [,18] [1,] 6918.1 7076.90 7040.80 7228.20 7459.70 7715.10 7973.70 8169.20 8536.10 [2,] 6940.8 7094.50 7063.65 7263.05 7478.60 7765.40 7980.85 8236.15 8600.95 [3,] 6988.3 7121.20 7103.60 7333.70 7516.75 7837.60 8020.55 8337.90 8719.75 [4,] 7022.0 7130.55 7137.40 7410.10 7586.70 7905.55 8082.55 8421.65 8806.05 [5,] 7030.9 7130.80 7154.10 7450.70 7637.40 7951.60 8112.00 8470.60 8838.40 [,19] [,20] [,21] [,22] [,23] [,24] [,25] [,26] [1,] 8936.20 9315.50 9695.60 9871.10 9977.30 10126.00 10543.60 10875.80 [2,] 8965.75 9354.05 9766.10 9873.35 10004.45 10169.35 10588.90 10910.95 [3,] 9047.10 9447.40 9842.25 9890.75 10061.15 10305.70 10681.45 10998.05 [4,] 9168.00 9586.65 9867.80 9907.95 10093.25 10432.85 10762.55 11068.05 [5,] 9237.10 9671.10 9887.70 9910.00 10095.80 10467.00 10796.40 11086.10 [,27] [,28] [,29] [1,] 11217.30 11357.80 11646.0 [2,] 11254.50 11424.60 11646.0 [3,] 11302.90 11556.05 11673.3 [4,] 11335.25 11623.20 11700.6 [5,] 11356.40 11625.70 11700.6 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 2 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 5079.96 5244.219 5174.702 5250.444 5723.795 5941.938 6192.449 6345.621 [2,] 5238.04 5329.381 5200.298 5600.256 5928.405 6167.562 6331.252 6582.779 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 6644.517 6924.152 7092.72 7045.338 7217.53 7431.351 7726.881 7940.207 [2,] 6838.383 7052.448 7149.68 7161.863 7449.87 7602.149 7948.319 8100.893 [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [1,] 8191.355 8557.721 8887.322 9263.646 9761.907 9863.416 9990.998 10097.53 [2,] 8484.445 8881.779 9206.877 9631.154 9922.593 9918.084 10131.302 10513.87 [,25] [,26] [,27] [,28] [,29] [1,] 10544.27 10873.94 11239.11 11399.16 11612.3 [2,] 10818.63 11122.16 11366.69 11712.94 11734.3 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" NA Warning message: In bxp(list(stats = c(5107.4, 5111.65, 5159, 5211.7, 5221.3, 5263.4, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7egc61275564686.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,] 8048.111 7697.750 8120.300 [2,] 8050.738 7706.425 8132.200 [3,] 8078.942 7754.800 8157.275 [4,] 8110.081 7805.100 8192.531 [5,] 8115.645 7815.700 8214.613 $n [1] 4 4 4 $conf [,1] [,2] [,3] [1,] 8032.061 7676.847 8109.613 [2,] 8125.823 7832.753 8204.937 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(8048.11071428571, 8050.73811576355, 8078.94168719212, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1i6ey1275564686.ps tmp/1i6ey1275564686.png",intern=TRUE)) character(0) > try(system("convert tmp/2sfdj1275564686.ps tmp/2sfdj1275564686.png",intern=TRUE)) character(0) > try(system("convert tmp/3sfdj1275564686.ps tmp/3sfdj1275564686.png",intern=TRUE)) character(0) > try(system("convert tmp/4sfdj1275564686.ps tmp/4sfdj1275564686.png",intern=TRUE)) character(0) > try(system("convert tmp/5lpcl1275564686.ps tmp/5lpcl1275564686.png",intern=TRUE)) character(0) > try(system("convert tmp/6lpcl1275564686.ps tmp/6lpcl1275564686.png",intern=TRUE)) character(0) > try(system("convert tmp/7egc61275564686.ps tmp/7egc61275564686.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.171 0.936 2.088