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(18288.3,16049,16764.5,17880.2,16555.9,16087.1,16373.5,17842.2,22321.5,22786.7,18274.1,22392.9,23899.3,21343.5,22952.3,21374.4,21164.1,20906.5,17877.4,20664.3,22160,19813.6,17735.4,19640.2,20844.4,19823.1,18594.6,21350.6,18574.1,18924.2,17343.4,19961.2,19932.1,19464.6,16165.4,17574.9,19795.4,19439.5,17170,21072.4,17751.8,17515.5,18040.3,19090.1,17746.5,19202.1,15141.6,16258.1,18586.5,17209.4,17838.7,19123.5,16583.6,15991.2,16704.5,17422,17872,17823.2,13866.5,15912.8,17870.5,15420.3,16379.4,17903.9,15305.8,14583.3,14861,14968.9,16726.5,16283.6,11703.7,15101.8,15469.7,14956.9,15370.6,15998.1,14725.1,14768.9,13659.6,15070.3,16942.6,15761.3,12083,15023.6,15106.5) > 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] 85 > (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] 8 7 7 7 7 7 7 7 7 7 7 7 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 18288.3 23899.3 20844.4 19795.4 18586.5 17870.5 15469.7 15106.5 [2,] 16049.0 21343.5 19823.1 19439.5 17209.4 15420.3 14956.9 NA [3,] 16764.5 22952.3 18594.6 17170.0 17838.7 16379.4 15370.6 NA [4,] 17880.2 21374.4 21350.6 21072.4 19123.5 17903.9 15998.1 NA [5,] 16555.9 21164.1 18574.1 17751.8 16583.6 15305.8 14725.1 NA [6,] 16087.1 20906.5 18924.2 17515.5 15991.2 14583.3 14768.9 NA [7,] 16373.5 17877.4 17343.4 18040.3 16704.5 14861.0 13659.6 NA [8,] 17842.2 20664.3 19961.2 19090.1 17422.0 14968.9 15070.3 NA [9,] 22321.5 22160.0 19932.1 17746.5 17872.0 16726.5 16942.6 NA [10,] 22786.7 19813.6 19464.6 19202.1 17823.2 16283.6 15761.3 NA [11,] 18274.1 17735.4 16165.4 15141.6 13866.5 11703.7 12083.0 NA [12,] 22392.9 19640.2 17574.9 16258.1 15912.8 15101.8 15023.6 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] -2239.3 -2555.8 -1021.3 -355.9 -1377.1 -2450.2 -512.8 NA [2,] 715.5 1608.8 -1228.5 -2269.5 629.3 959.1 413.7 NA [3,] 1115.7 -1577.9 2756.0 3902.4 1284.8 1524.5 627.5 NA [4,] -1324.3 -210.3 -2776.5 -3320.6 -2539.9 -2598.1 -1273.0 NA [5,] -468.8 -257.6 350.1 -236.3 -592.4 -722.5 43.8 NA [6,] 286.4 -3029.1 -1580.8 524.8 713.3 277.7 -1109.3 NA [7,] 1468.7 2786.9 2617.8 1049.8 717.5 107.9 1410.7 NA [8,] 4479.3 1495.7 -29.1 -1343.6 450.0 1757.6 1872.3 NA [9,] 465.2 -2346.4 -467.5 1455.6 -48.8 -442.9 -1181.3 NA [10,] -4512.6 -2078.2 -3299.2 -4060.5 -3956.7 -4579.9 -3678.3 NA [11,] 4118.8 1904.8 1409.5 1116.5 2046.3 3398.1 2940.6 NA [12,] 1506.4 1204.2 2220.5 2328.4 1957.7 367.9 82.9 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/1ttzl1272228042.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/2ttzl1272228042.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/3ttzl1272228042.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/496ou1272228042.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,] 15106.5 14956.90 15370.60 15998.10 14725.10 14583.30 13659.60 14968.90 [2,] 16670.1 15734.65 16571.95 17892.05 15930.85 15380.05 15617.25 16246.15 [3,] 18437.4 17209.40 17170.00 19123.50 16583.60 16087.10 16704.50 17842.20 [4,] 20319.9 19631.30 18216.65 21211.50 18162.95 18219.85 17610.40 19525.65 [5,] 23899.3 21343.50 18594.60 21374.40 21164.10 20906.50 18040.30 20664.30 [,9] [,10] [,11] [,12] [1,] 16726.50 15761.3 11703.70 15023.60 [2,] 17344.55 17053.4 12974.75 15507.30 [3,] 17872.00 19202.1 15141.60 16258.10 [4,] 21046.05 19639.1 16950.40 18607.55 [5,] 22321.50 22786.7 18274.10 22392.90 $n [1] 8 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16398.57 14882.38 16187.81 17141.18 15250.63 14391.22 15514.22 15883.74 [2,] 20476.23 19536.42 18152.19 21105.82 17916.57 17782.98 17894.78 19800.66 [,9] [,10] [,11] [,12] [1,] 15661.52 17657.96 12767.41 14406.68 [2,] 20082.48 20746.24 17515.79 18109.52 $out [1] 22952.3 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(15106.5, 16670.1, 18437.4, 20319.9, 23899.3, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/596ou1272228042.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] [1,] -2555.80 -2269.5 627.50 -3320.60 -722.50 -3029.10 107.90 -1343.60 [2,] -2344.75 -407.4 871.60 -2687.30 -530.60 -1345.05 883.65 210.45 [3,] -1377.10 629.3 1284.80 -2539.90 -257.60 277.70 1410.70 1495.70 [4,] -767.05 837.3 2140.25 -1298.65 -96.25 405.60 2043.25 1814.95 [5,] -355.90 1608.8 3902.40 -210.30 350.10 713.30 2786.90 1872.30 [,9] [,10] [,11] [,12] [1,] -2346.4 -4579.90 1116.50 82.90 [2,] -824.4 -4286.55 1657.15 786.05 [3,] -442.9 -3956.70 2046.30 1506.40 [4,] 208.2 -3488.75 3169.35 2089.10 [5,] 1455.6 -3299.20 4118.80 2328.40 $n [1] 7 7 7 7 7 7 7 7 7 7 7 7 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -2319.277 -114.0148 527.1827 -3369.179 -516.986813 -767.76 718.2056 [2,] -434.923 1372.6148 2042.4173 -1710.621 1.786813 1323.16 2103.1944 [,8] [,9] [,10] [,11] [,12] [1,] 537.5185 -1059.5521 -4433.133 1143.239 728.2396 [2,] 2453.8815 173.7521 -3480.267 2949.361 2284.5604 $out [1] -1577.9 4479.3 -2078.2 $group [1] 3 8 10 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-2555.8, -2344.75, -1377.10000000000, -767.050000000002, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/696ou1272228042.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,] 16049.0 17735.4 16165.40 15141.60 15912.80 14583.30 13659.60 15106.5 [2,] 16464.7 19726.9 18074.50 17342.75 16287.40 14914.95 14747.00 15106.5 [3,] 17861.2 21035.3 19194.40 17896.05 17315.70 15363.05 15046.95 15106.5 [4,] 20304.9 21767.2 19946.65 19320.80 17855.35 16552.95 15615.50 15106.5 [5,] 22786.7 23899.3 21350.60 21072.40 19123.50 17903.90 15998.10 15106.5 $n [1] 12 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 16109.66 20104.71 18340.5 16993.85 16600.55 14615.95 14650.82 15106.5 [2,] 19612.74 21965.89 20048.3 18798.25 18030.85 16110.15 15443.08 15106.5 $out [1] 13866.5 11703.7 16942.6 12083.0 $group [1] 5 6 7 7 $names [1] "1" "2" "3" "4" "5" "6" "7" NA Warning message: In bxp(list(stats = c(16049, 16464.7, 17861.2, 20304.9, 22786.7, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/7wcyr1272228042.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,] 14995.67 15141.60 14962.58 [2,] 17102.65 16420.85 16923.42 [3,] 17804.34 17189.70 17538.64 [4,] 18733.08 18154.70 18505.11 [5,] 19243.30 19202.10 19551.78 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17060.69 16398.88 16817.22 [2,] 18547.99 17980.52 18260.06 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(14995.6714285714, 17102.65, 17804.3357142857, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1ttzl1272228042.ps tmp/1ttzl1272228042.png",intern=TRUE)) character(0) > try(system("convert tmp/2ttzl1272228042.ps tmp/2ttzl1272228042.png",intern=TRUE)) character(0) > try(system("convert tmp/3ttzl1272228042.ps tmp/3ttzl1272228042.png",intern=TRUE)) character(0) > try(system("convert tmp/496ou1272228042.ps tmp/496ou1272228042.png",intern=TRUE)) character(0) > try(system("convert tmp/596ou1272228042.ps tmp/596ou1272228042.png",intern=TRUE)) character(0) > try(system("convert tmp/696ou1272228042.ps tmp/696ou1272228042.png",intern=TRUE)) character(0) > try(system("convert tmp/7wcyr1272228042.ps tmp/7wcyr1272228042.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.54 1.53 2.77