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(17823.2,17872,17420.4,16704.4,15991.2,15583.6,19123.5,17838.7,17209.4,18586.5,16258.1,15141.6,19202.1,17746.5,19090.1,18040.3,17515.5,17751.8,21072.4,17170,19439.5,19795.4,17574.9,16165.4,19464.6,19932.1,19961.2,17343.4,18924.2,18574.1,21350.6,18594.6,19832.1,20844.4,19640.2,17735.4,19813.6,22160,20664.3,17877.4,20906.5,21164.1,21374.4,22952.3,21343.5,23899.3,22392.9,18274.1,22786.7,22321.5,17842.2,16373.5,15933.8,16446.1,17729,16643,16196.7,18252.1,17570.4,15836.8) > 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] 60 > (np <- floor(n / par1)) [1] 5 > 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] 5 5 5 5 5 5 5 5 5 5 5 5 > arr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 17823.2 19202.1 19464.6 19813.6 22786.7 NA [2,] 17872.0 17746.5 19932.1 22160.0 22321.5 NA [3,] 17420.4 19090.1 19961.2 20664.3 17842.2 NA [4,] 16704.4 18040.3 17343.4 17877.4 16373.5 NA [5,] 15991.2 17515.5 18924.2 20906.5 15933.8 NA [6,] 15583.6 17751.8 18574.1 21164.1 16446.1 NA [7,] 19123.5 21072.4 21350.6 21374.4 17729.0 NA [8,] 17838.7 17170.0 18594.6 22952.3 16643.0 NA [9,] 17209.4 19439.5 19832.1 21343.5 16196.7 NA [10,] 18586.5 19795.4 20844.4 23899.3 18252.1 NA [11,] 16258.1 17574.9 19640.2 22392.9 17570.4 NA [12,] 15141.6 16165.4 17735.4 18274.1 15836.8 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [1,] 48.8 -1455.6 467.5 2346.4 -465.2 NA [2,] -451.6 1343.6 29.1 -1495.7 -4479.3 NA [3,] -716.0 -1049.8 -2617.8 -2786.9 -1468.7 NA [4,] -713.2 -524.8 1580.8 3029.1 -439.7 NA [5,] -407.6 236.3 -350.1 257.6 512.3 NA [6,] 3539.9 3320.6 2776.5 210.3 1282.9 NA [7,] -1284.8 -3902.4 -2756.0 1577.9 -1086.0 NA [8,] -629.3 2269.5 1237.5 -1608.8 -446.3 NA [9,] 1377.1 355.9 1012.3 2555.8 2055.4 NA [10,] -2328.4 -2220.5 -1204.2 -1506.4 -681.7 NA [11,] -1116.5 -1409.5 -1904.8 -4118.8 -1733.6 NA [12,] 4060.5 3299.2 2078.2 4512.6 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/150a61257959481.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/2jf8z1257959481.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/3vn3i1257959481.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/4100d1257959481.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] [1,] 19202.1 17746.5 17420.4 16373.5 15933.8 15583.6 17729.0 16643.0 16196.7 [2,] 19202.1 17872.0 17842.2 16704.4 15991.2 16446.1 19123.5 17170.0 17209.4 [3,] 19464.6 19932.1 19090.1 17343.4 17515.5 17751.8 21072.4 17838.7 19439.5 [4,] 19813.6 22160.0 19961.2 17877.4 18924.2 18574.1 21350.6 18594.6 19832.1 [5,] 19813.6 22321.5 20664.3 18040.3 20906.5 21164.1 21374.4 18594.6 21343.5 [,10] [,11] [,12] [1,] 18252.1 16258.1 15141.6 [2,] 18586.5 17570.4 15836.8 [3,] 19795.4 17574.9 16165.4 [4,] 20844.4 19640.2 17735.4 [5,] 23899.3 22392.9 18274.1 $n [1] 5 5 5 5 5 5 5 5 5 5 5 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 19032.52 16902.21 17592.82 16514.56 15443.05 16248.16 19498.74 16832.08 [2,] 19896.68 22961.99 20587.38 18172.24 19587.95 19255.44 22646.06 18845.32 [,9] [,10] [,11] [,12] [1,] 17586.31 18199.97 16112.38 14823.85 [2,] 21292.69 21390.83 19037.42 17506.95 $out [1] 17823.2 22786.7 22952.3 $group [1] 1 1 8 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(19202.1, 19202.1, 19464.6, 19813.6, 19813.6, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5lz541257959481.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,] -1455.6 -1495.7 -2786.9 -713.2 -407.6 210.3 -3902.4 -1608.8 355.9 [2,] -465.2 -1495.7 -2617.8 -524.8 -350.1 1282.9 -2756.0 -629.3 1012.3 [3,] 48.8 -451.6 -1468.7 -439.7 236.3 2776.5 -1284.8 -446.3 1377.1 [4,] 467.5 29.1 -1049.8 1580.8 257.6 3320.6 -1086.0 1237.5 2055.4 [5,] 467.5 1343.6 -716.0 3029.1 512.3 3539.9 -1086.0 2269.5 2555.8 [,10] [,11] [,12] [1,] -2328.4 -1904.8 2078.20 [2,] -2220.5 -1904.8 2688.70 [3,] -1506.4 -1733.6 3679.85 [4,] -1204.2 -1409.5 4286.55 [5,] -681.7 -1116.5 4512.60 $n [1] 5 5 5 5 5 5 5 5 5 5 5 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -610.2435 -1529.0198 -2576.6449 -1927.512 -193.0993 1336.666 -2464.8178 [2,] 707.8435 625.8198 -360.7551 1048.112 665.6993 4216.334 -104.7822 [,8] [,9] [,10] [,11] [,12] [1,] -1765.3762 640.0482 -2224.515 -2083.578 2417.548 [2,] 872.7762 2114.1518 -788.285 -1383.622 4942.151 $out [1] 2346.4 -4479.3 1577.9 -4118.8 $group [1] 1 2 7 11 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-1455.6, -465.200000000001, 48.7999999999993, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6kn5f1257959481.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] [1,] 15141.60 16165.40 17343.40 17877.40 15836.80 NA [2,] 16124.65 17545.20 18584.35 20238.95 16285.10 NA [3,] 17314.90 17896.05 19552.40 21253.80 17106.70 NA [4,] 17855.35 19320.80 19946.65 22276.45 18047.15 NA [5,] 19123.50 21072.40 21350.60 23899.30 18252.10 NA $n [1] 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 16525.52 17086.19 18931.05 20324.48 16303.02 NA [2,] 18104.28 18705.91 20173.75 22183.12 17910.38 NA $out [1] 22786.7 22321.5 $group [1] 5 5 $names [1] "1" "2" "3" "4" "5" NA Warning message: In bxp(list(stats = c(15141.6, 16124.65, 17314.9, 17855.35, 19123.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/79e9b1257959481.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,] 16630.66 16165.4 16786.10 [2,] 17879.09 17545.2 17483.90 [3,] 18745.77 18464.4 18563.03 [4,] 19912.23 19630.0 19611.65 [5,] 20275.54 21072.4 20237.05 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 17818.44 17513.51 17592.54 [2,] 19673.10 19415.29 19533.51 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(16630.66, 17879.09, 18745.77, 19912.23, 20275.54, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/150a61257959481.ps tmp/150a61257959481.png") > system("convert tmp/2jf8z1257959481.ps tmp/2jf8z1257959481.png") > system("convert tmp/3vn3i1257959481.ps tmp/3vn3i1257959481.png") > system("convert tmp/4100d1257959481.ps tmp/4100d1257959481.png") > system("convert tmp/5lz541257959481.ps tmp/5lz541257959481.png") > system("convert tmp/6kn5f1257959481.ps tmp/6kn5f1257959481.png") > system("convert tmp/79e9b1257959481.ps tmp/79e9b1257959481.png") > > > proc.time() user system elapsed 1.263 1.015 25.150