R version 2.7.2 (2008-08-25) Copyright (C) 2008 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(11391.9,11793.1,13933.2,12778.1,11810.3,13698.4,11956.6,10723.8,13938.9,13979.8,13807.4,12973.9,12509.8,12934.1,14908.3,13772.1,13012.6,14049.9,11816.5,11593.2,14466.2,13615.9,14733.9,13880.7,13527.5,13584.0,16170.2,13260.6,14741.9,15486.5,13154.5,12621.2,15031.6,15452.4,15428.0,13105.9,14716.8,14180.0,16202.2,14392.4,15140.6,15960.1,14351.3,13230.2,15202.1,17157.3,16159.1,13405.7) > 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] 48 > (np <- floor(n / par1)) [1] 4 > 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] 4 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 11391.9 12509.8 13527.5 14716.8 NA [2,] 11793.1 12934.1 13584.0 14180.0 NA [3,] 13933.2 14908.3 16170.2 16202.2 NA [4,] 12778.1 13772.1 13260.6 14392.4 NA [5,] 11810.3 13012.6 14741.9 15140.6 NA [6,] 13698.4 14049.9 15486.5 15960.1 NA [7,] 11956.6 11816.5 13154.5 14351.3 NA [8,] 10723.8 11593.2 12621.2 13230.2 NA [9,] 13938.9 14466.2 15031.6 15202.1 NA [10,] 13979.8 13615.9 15452.4 17157.3 NA [11,] 13807.4 14733.9 15428.0 16159.1 NA [12,] 12973.9 13880.7 13105.9 13405.7 NA > darr [,1] [,2] [,3] [,4] [,5] [1,] 401.2 424.3 56.5 -536.8 NA [2,] 2140.1 1974.2 2586.2 2022.2 NA [3,] -1155.1 -1136.2 -2909.6 -1809.8 NA [4,] -967.8 -759.5 1481.3 748.2 NA [5,] 1888.1 1037.3 744.6 819.5 NA [6,] -1741.8 -2233.4 -2332.0 -1608.8 NA [7,] -1232.8 -223.3 -533.3 -1121.1 NA [8,] 3215.1 2873.0 2410.4 1971.9 NA [9,] 40.9 -850.3 420.8 1955.2 NA [10,] -172.4 1118.0 -24.4 -998.2 NA [11,] -833.5 -853.2 -2322.1 -2753.4 NA [12,] -464.1 -353.2 1610.9 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/1rfjm1225747389.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/2obs61225747389.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/3dlgj1225747389.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/47v2u1225747389.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,] 11391.90 11793.10 13933.20 12778.10 11810.30 13698.40 11816.50 10723.8 [2,] 11950.85 12363.60 14420.75 13019.35 12411.45 13874.15 11886.55 11158.5 [3,] 13018.65 13259.05 15539.25 13516.35 13877.25 14768.20 12555.55 12107.2 [4,] 14122.15 13882.00 16186.20 14082.25 14941.25 15723.30 13752.90 12925.7 [5,] 14716.80 14180.00 16202.20 14392.40 15140.60 15960.10 14351.30 13230.2 [,9] [,10] [,11] [,12] [1,] 13938.90 13615.90 13807.40 12973.9 [2,] 14202.55 13797.85 14270.65 13039.9 [3,] 14748.90 14716.10 15080.95 13255.8 [4,] 15116.85 16304.85 15793.55 13643.2 [5,] 15202.10 17157.30 16159.10 13880.7 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 11303.32 12059.51 14144.54 12676.66 11878.71 13307.37 11081.13 10711.11 [2,] 14733.98 14458.59 16933.96 14356.04 15875.79 16229.03 14029.97 13503.29 [,9] [,10] [,11] [,12] [1,] 14026.60 12735.57 13877.86 12779.19 [2,] 15471.20 16696.63 16284.04 13732.41 $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(11391.9, 11950.85, 13018.65, 14122.15, 14716.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/5p8bs1225747389.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,] -536.80 1974.20 -2909.60 -967.80 744.60 -2332.0 -1232.80 1971.90 -850.30 [2,] -240.15 1998.20 -2359.70 -863.65 782.05 -2282.7 -1176.95 2191.15 -404.70 [3,] 228.85 2081.15 -1482.45 -5.65 928.40 -1987.6 -827.20 2641.70 230.85 [4,] 412.75 2363.15 -1145.65 1114.75 1462.70 -1675.3 -378.30 3044.05 1188.00 [5,] 424.30 2586.20 -1136.20 1481.30 1888.10 -1608.8 -223.30 3215.10 1955.20 [,10] [,11] [,12] [1,] -998.2 -2753.40 -464.10 [2,] -585.3 -2537.75 -408.65 [3,] -98.4 -1587.65 -353.20 [4,] 546.8 -843.35 628.85 [5,] 1118.0 -833.50 1610.90 $n [1] 4 4 4 4 4 4 4 4 4 4 4 3 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -286.941 1792.840 -2441.5495 -1568.586 390.6865 -2467.446 -1458.1335 [2,] 744.641 2369.461 -523.3505 1557.286 1466.1135 -1507.754 -196.2665 [,8] [,9] [,10] [,11] [,12] [1,] 1967.909 -1027.383 -992.759 -2926.226 -1299.6214 [2,] 3315.491 1489.083 795.959 -249.074 593.2214 $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(-536.799999999999, -240.150000000000, 228.850000000000, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/6c2541225747389.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] [1,] 10723.8 11593.20 12621.20 13230.20 NA [2,] 11801.7 12721.95 13207.55 14265.65 NA [3,] 12876.0 13694.00 14162.95 14928.70 NA [4,] 13870.3 14258.05 15440.20 16059.60 NA [5,] 13979.8 14908.30 16170.20 17157.30 NA $n [1] 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [1,] 11932.50 12993.37 13144.62 14110.47 NA [2,] 13819.50 14394.63 15181.28 15746.93 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(10723.8, 11801.7, 12876, 13870.3, 13979.8, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/rcomp/tmp/7qrce1225747389.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,] 12042.10 12107.20 12074.65 [2,] 13079.65 13137.22 13109.25 [3,] 13613.58 13696.80 13655.19 [4,] 14915.41 14758.55 14833.59 [5,] 15303.48 15539.25 15421.36 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 12776.27 12957.30 12868.70 [2,] 14450.88 14436.30 14441.67 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(12042.1, 13079.65, 13613.575, 14915.4125, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > system("convert tmp/1rfjm1225747389.ps tmp/1rfjm1225747389.png") > system("convert tmp/2obs61225747389.ps tmp/2obs61225747389.png") > system("convert tmp/3dlgj1225747389.ps tmp/3dlgj1225747389.png") > system("convert tmp/47v2u1225747389.ps tmp/47v2u1225747389.png") > system("convert tmp/5p8bs1225747389.ps tmp/5p8bs1225747389.png") > system("convert tmp/6c2541225747389.ps tmp/6c2541225747389.png") > system("convert tmp/7qrce1225747389.ps tmp/7qrce1225747389.png") > > > proc.time() user system elapsed 1.447 0.969 1.861