R version 2.8.0 (2008-10-20) 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(41086,39690,43129,37863,35953,29133,24693,22205,21725,27192,21790,13253,37702,30364,32609,30212,29965,28352,25814,22414,20506,28806,22228,13971,36845,35338,35022,34777,26887,23970,22780,17351,21382,24561,17409,11514,31514,27071,29462,26105,22397,23843,21705,18089,20764,25316,17704,15548,28029,29383,36438,32034,22679,24319,18004,17537,20366,22782,19169,13807,29743,25591,29096,26482,22405,27044,17970,18730,19684,19785,18479,10698) > par1 = '6' > #'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] 72 > (np <- floor(n / par1)) [1] 12 > 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] 12 12 12 12 12 12 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 41086 24693 37702 25814 36845 22780 31514 21705 28029 18004 29743 17970 [2,] 39690 22205 30364 22414 35338 17351 27071 18089 29383 17537 25591 18730 [3,] 43129 21725 32609 20506 35022 21382 29462 20764 36438 20366 29096 19684 [4,] 37863 27192 30212 28806 34777 24561 26105 25316 32034 22782 26482 19785 [5,] 35953 21790 29965 22228 26887 17409 22397 17704 22679 19169 22405 18479 [6,] 29133 13253 28352 13971 23970 11514 23843 15548 24319 13807 27044 10698 [,13] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] -1396 -2488 -7338 -3400 -1507 -5429 -4443 -3616 1354 -467 -4152 760 [2,] 3439 -480 2245 -1908 -316 4031 2391 2675 7055 2829 3505 954 [3,] -5266 5467 -2397 8300 -245 3179 -3357 4552 -4404 2416 -2614 101 [4,] -1910 -5402 -247 -6578 -7890 -7152 -3708 -7612 -9355 -3613 -4077 -1306 [5,] -6820 -8537 -1613 -8257 -2917 -5895 1446 -2156 1640 -5362 4639 -7781 [6,] -4440 24449 -2538 22874 -1190 20000 -2138 12481 -6315 15936 -9074 NA [,13] [1,] NA [2,] NA [3,] NA [4,] NA [5,] NA [6,] 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/freestat/rcomp/tmp/19g561272119473.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/freestat/rcomp/tmp/29g561272119473.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/freestat/rcomp/tmp/3kp4r1272119473.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/freestat/rcomp/tmp/4kp4r1272119473.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] [1,] 17970.0 17351.0 19684.0 19785.0 17409.0 10698.0 [2,] 22242.5 18409.5 20635.0 24938.5 18824.0 13530.0 [3,] 26921.5 24002.5 25410.5 26837.0 22312.5 19695.5 [4,] 34179.5 29873.5 33815.5 31123.0 24783.0 25681.5 [5,] 41086.0 39690.0 43129.0 37863.0 29965.0 29133.0 $n [1] 12 12 12 12 12 12 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] 21476.95 18773.69 19398.79 24016.21 19594.56 14153.12 [2,] 32366.05 29231.31 31422.21 29657.79 25030.44 25237.88 $out [1] 35953 $group [1] 5 $names [1] "1" "2" "3" "4" "5" "6" Warning message: In bxp(list(stats = c(17970, 22242.5, 26921.5, 34179.5, 41086, 17351, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/5kp4r1272119473.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] [1,] -7338.0 -1908 -5266.0 -9355.0 -8537.0 -9074 [2,] -4297.5 319 -2985.5 -7382.0 -7300.5 -3489 [3,] -2944.0 2533 -72.0 -4739.5 -4139.5 -1190 [4,] -931.5 3472 3865.5 -2761.5 -83.5 17968 [5,] 1354.0 7055 8300.0 -247.0 4639.0 24449 $n [1] 12 12 12 12 12 11 $conf [,1] [,2] [,3] [,4] [,5] [,6] [1,] -4479.255 1094.896 -3196.787 -6846.941 -7431.2221 -11411.856 [2,] -1408.745 3971.104 3052.787 -2632.059 -847.7779 9031.856 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" Warning message: In bxp(list(stats = c(-7338, -4297.5, -2944, -931.5, 1354, -1908, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/6vz4u1272119473.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] [,10] [1,] 29133.0 21725.0 28352 13971 23970.0 11514.0 22397 15548.0 22679 13807.0 [2,] 35953.0 21725.0 29965 20506 26887.0 17351.0 23843 17704.0 24319 17537.0 [3,] 38776.5 21997.5 30288 22321 34899.5 19395.5 26588 19426.5 28706 18586.5 [4,] 41086.0 24693.0 32609 25814 35338.0 22780.0 29462 21705.0 32034 20366.0 [5,] 43129.0 27192.0 32609 28806 36845.0 24561.0 31514 25316.0 36438 22782.0 [,11] [,12] [,13] [1,] 22405 17970.0 NA [2,] 25591 17970.0 NA [3,] 26763 18604.5 NA [4,] 29096 19684.0 NA [5,] 29743 19785.0 NA $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 35465.55 20083.04 28582.53 18897.17 29448.33 15893.62 22963.56 16845.73 [2,] 42087.45 23911.96 31993.47 25744.83 40350.67 22897.38 30212.44 22007.27 [,9] [,10] [,11] [,12] [,13] [1,] 23729.58 16761.70 24502.16 17498.91 NA [2,] 33682.42 20411.30 29023.84 19710.09 NA $out [1] 13253 37702 10698 $group [1] 2 3 12 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" NA Warning message: In bxp(list(stats = c(29133, 35953, 38776.5, 41086, 43129, 21725, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/html/freestat/rcomp/tmp/7vz4u1272119473.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,] 19621.00 19695.5 19334.38 [2,] 23088.75 22312.5 21363.75 [3,] 26414.42 24706.5 25527.44 [4,] 27990.42 26837.0 27679.00 [5,] 27992.92 26921.5 27897.38 $n [1] 6 6 6 $conf [,1] [,2] [,3] [1,] 23252.68 21788.05 21453.90 [2,] 29576.15 27624.95 29600.98 $out numeric(0) $group numeric(0) $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(19621, 23088.75, 26414.4166666667, 27990.4166666667, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/19g561272119473.ps tmp/19g561272119473.png",intern=TRUE)) character(0) > try(system("convert tmp/29g561272119473.ps tmp/29g561272119473.png",intern=TRUE)) character(0) > try(system("convert tmp/3kp4r1272119473.ps tmp/3kp4r1272119473.png",intern=TRUE)) character(0) > try(system("convert tmp/4kp4r1272119473.ps tmp/4kp4r1272119473.png",intern=TRUE)) character(0) > try(system("convert tmp/5kp4r1272119473.ps tmp/5kp4r1272119473.png",intern=TRUE)) character(0) > try(system("convert tmp/6vz4u1272119473.ps tmp/6vz4u1272119473.png",intern=TRUE)) character(0) > try(system("convert tmp/7vz4u1272119473.ps tmp/7vz4u1272119473.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.885 1.490 2.254